//Opel Manta Physics by marwol

[GENERAL]
Rules=0                         // what rules to apply to garage setups (0=none, 1=stock car)
GarageDisplayFlags=1            // how settings are displayed in garage (add): 1=rear wing, 2=radiator, 4=more gear info
FeelerFlags=0
Mass=900.0                     // all mass except fuel
Inertia=(1479.16,1528.50,310.08)
FuelTankPos=(0.00, 0.15, -0.30)
FuelTankMotion=(560.0,0.7)      // simple model of fuel movement in tank (spring rate per kg, critical damping ratio)
Notes=""
Symmetric=1
DamageFile=Manta_damage.dmg
CGHeight=0.265
CGRightRange=(0.500, 0.002, 1)  // fraction of weight on left tires
CGRightSetting=0
CGRearRange=(0.490, 0.000, 0)
CGRearSetting=0
WedgeRange=(0.0, 0.0, 0)       // rounds of wedge (disabled here because we use ride heights individually for F1)
WedgeSetting=0
WedgePushrod=0.0                // each round of wedge changes rear-left jacking screw by this amount (0.0 to disable, use Rules to allow FR ride height)
GraphicalOffset=(0.0, 0.045, 0.0) // does not affect physics!
FLUndertray=(0.55,  0.00, -0.45)
FRUndertray=(-0.55, 0.00, -0.45)
RLUndertray=(0.55,  0.00, 0.25)
RRUndertray=(-0.55, 0.00, 0.25)
TireBrand=KisslingManta.tyr
TireCompoundSetting=0           // compound index within brand
FuelRange=(1.0, 1.0, 90)
FuelSetting=89
NumPitstopsRange=(0, 1, 4)
NumPitstopsSetting=0
Pitstop1Range=(1.0, 1.0, 90)
Pitstop1Setting=64
Pitstop2Range=(1.0, 1.0, 90)
Pitstop2Setting=64
Pitstop3Range=(1.0, 1.0, 90)
Pitstop3Setting=64
AIAimSpeedsPerWP=(25.0, 40.0, 50.0, 75.0, 100.0, 150.0, 200.0) // speeds at which to look ahead X waypoints (spaced roughly 5 meters apart)
AISlipReaction=(520.0, 25.0)
AICornerReductionBase=75.0  		//This tells the AI approximately how speed it can drop per waypoint of distance. If this is too high, the AI will brake too late.
AIMinPassesPerTick=3            	// minimum passes per tick (can use more accurate spring/damper/torque values, but takes more CPU)
AIRotationThreshold=0.15        	// rotation threshold (rads/sec) to temporarily increment passes per tick
AIEvenSuspension=0.3            	// averages out spring and damper rates to improve stability (0.0 - 1.0)
AISpringRate=1.0			// spring rate adjustment for AI physics (improves stability)
AIDamperSlow=0.5                	// contribution of average slow damper into simple AI damper
AIDamperFast=0.5                	// contribution of average fast damper into simple AI damper
AIDownforceZArm=0.150           	// hard-coded center-of-pressure offset from vehicle CG
AIDownforceBias=0.0             	// bias between setup and hard-coded value (0.0-1.0)
AITorqueStab=(1.3, 1.4, 1.5)		// torque adjustment to keep AI stable
AIFuelMult=0.93 			// PLR file override for AI fuel usage - only positive value will override, see PLR for default
AIPerfUsage=(0.95, 0.95, 1.05)		// PLR file overrides for (brake power usage, brake grip usage, corner grip usage) used by AI to estimate performance - only positive values will override, see PLR for defaults
AITableParams=(40000.0, 15.0)
FeelerFlags=0

[FRONTWING]                      	// spoiler
FWRange=(3.0, 0.0, 1)         		// rear wing range
FWSetting=1                    		// rear wing setting
FWDragParams=(0.012, 0.0008, 0.0001)
FWLiftParams=(-0.0265, -0.004, 0.0001)
FWLiftSideways=(0.250)
FWLeft=(-0.02, -0.002, 0.0)     	// aero forces from moving left
FWRight=(0.02, -0.002, 0.0)     	// aero forces from moving right
FWUp=(0.0, -0.08, -0.002)       	// aero forces from moving up
FWDown=(0.0, 0.15, 0.002)       	// aero forces from moving down
FWAft=(0.0, 0.03, -0.4)         	// aero forces from moving rearwards
FWFore=(0.0, 0.0, 0.0)          	// aero forces from moving forwards (recomputed from settings)
FRWRot=(0.15, 0.05, 0.10)
FWCenter=(0.00, 0.00, -0.15)

[REARWING]                      	// spoiler
RWRange=(3.0, 0.0, 1)         		// rear wing range
RWSetting=1                    		// rear wing setting
RWDragParams=(0.0016, 0.0098, 0.0001)
RWLiftParams=(-0.0320, -0.0098, 0.0001)
RWLiftSideways=(0.250)
RWLeft=(-0.02, -0.002, 0.0)     	// aero forces from moving left
RWRight=(0.02, -0.002, 0.0)     	// aero forces from moving right
RWUp=(0.0, -0.08, -0.002)       	// aero forces from moving up
RWDown=(0.0, 0.10, 0.002)       	// aero forces from moving down
RWAft=(0.0, 0.03, -0.4)         	// aero forces from moving rearwards
RWFore=(0.0, 0.0, 0.0)          	// aero forces from moving forwards (recomputed from settings)
RWRot=(0.15, 0.05, 0.10)
RWCenter=(0.00, 0.60, 0.65)     // center of rear wing forces (offset from center of rear axle at ref plane)

[BODYAERO]
BodyDragBase=(0.35)
BodyDragHeightAvg=(0.12)        // drag increase with average ride height
BodyDragHeightDiff=(0.35)       // drag increase with front/rear ride height difference
BodyMaxHeight=(0.20)            // maximum ride height that affects drag/lift
BodyLeft=(-0.5, 0.0, 0.0)       // aero forces from moving left
BodyRight=(0.5, 0.0, 0.0)       // aero forces from moving right
BodyUp=(0.0, -1.1, 0.0)         // aero forces from moving up
BodyDown=(0.0, 1.1, 0.0)        // aero forces from moving down
BodyAft=(0.0, 0.0, -1.00)
BodyFore=(0.0, -0.00100, 0.300)
BodyRot=(9.20, 7.1, 4.70)
BodyCenter=(0.0, 0.200, -1.20)
RadiatorRange=(4.0, 0.0, 0)     // radiator range
RadiatorSetting=0               // radiator setting
RadiatorDrag=(0.0)           	// effect of radiator setting on drag
RadiatorLift=(0.0)            	// effect of radiator setting on lift
BrakeDuctRange=(1.0,0.0,0)
BrakeDuctSetting=0
BrakeDuctDrag=(0.00)
BrakeDuctLift=(0.00)

[SUSPENSION]
PhysicalModelFile=Manta.sp
ApplySlowToFastDampers=0         // whether to apply slow damper settings to fast damper settings
AdjustSuspRates=1                // adjust suspension rates due to motion ratio
AlignWheels=1                    // correct for minor graphical offsets
FrontWheelTrack=0.0              // if non-zero, forces the front wheels to be specified track width
RearWheelTrack=0.0               // if non-zero, forces the rear wheels to be specified track width
LeftWheelBase=0.0                // if non-zero, forces the left side to use specified wheelbase
RightWheelBase=0.0               // if non-zero, forces the right side to use specified wheelbase
SpringBasedAntiSway=1            // 0=diameter-based, 1=spring-based
FrontAntiSwayBase=0.0
FrontAntiSwayRange=(0000.0, 5000.0, 16)
FrontAntiSwaySetting=8
FrontAntiSwayRate=(0.0, 0.0)	// not applicable with spring-based antisway
RearAntiSwayBase=0.0
RearAntiSwayRange=(0000.0, 5000.0, 16)
RearAntiSwaySetting=2
RearAntiSwayRate=(0.0, 0.0)  	// not applicable with spring-based antisway
FrontToeInRange=(-1.0, 0.05, 41)
FrontToeInSetting=23
RearToeInRange=(-1.0, 0.05, 41)
RearToeInSetting=20
LeftCasterRange=(-2.0, 0.1, 81)
LeftCasterSetting=35
RightCasterRange=(-2.0, 0.1, 81)
RightCasterSetting=35
LeftTrackBarRange=(0.0, 0.0, 1)  // rear-left track bar (not applicable without a rear axle)
LeftTrackBarSetting=0
RightTrackBarRange=(0.0, 0.0, 1) // rear-right track bar (not applicable without a rear axle)
RightTrackBarSetting=0

[CONTROLS]
SteeringFFBMult=1.2 
SteerLockRange=(5.0, 0.5, 37)
SteerLockSetting=26
RearBrakeRange=(0.200, 0.005, 60)
RearBrakeSetting=40
BrakePressureRange=(0.00, 0.05, 21)
BrakePressureSetting=20
HandbrakePressRange=(0.00, 0.05, 0)  // change this to 5.0 for Andi Priaulx's car ;-)
HandbrakePressSetting=0
AutoUpshiftGripThresh=0.65          // auto upshift waits until all driven wheels have this much grip (reasonable range: 0.4-0.9)
AutoDownshiftGripThresh=0.65        // auto downshift waits until all driven wheels have this much grip (reasonable range: 0.4-0.9)
TractionControlGrip=(1.00, 0.20)    // average driven wheel grip multiplied by 1st number, then added to 2nd
TractionControlLevel=(0.30, 0.90)   // effect of grip on throttle for low TC and high TC
ABS4Wheel=1                         // 0 = old-style single brake pulse, 1 = more effective 4-wheel ABS
ABSGrip=(1.00, 0.20)                // grip multiplied by 1st number and added to 2nd
ABSLevel=(0.30, 0.90)               // effect of grip on brakes for low ABS and high ABS

[ENGINE]	
Normal=KisslingManta.eng
RestrictorPlate=KisslingManta.eng

[DRIVELINE]
ClutchEngageRate=0.8  
ClutchInertia=0.0080
ClutchTorque=400.0
ClutchWear=0.0
ClutchFriction=10.800
BaulkTorque=400.0
AllowManualOverride=1               // whether to allow manual shift overrides when using auto shifting
SemiAutomatic=0
UpshiftDelay=0.250
UpshiftClutchTime=0.220
DownshiftDelay=0.200
DownshiftClutchTime=0.270
WheelDrive=rear                      // which wheels are driven: REAR, FOUR (even torque split), or FRONT
GearFile=KisslingManta.grb
AllowGearingChanges=0			// Whether to allow gear ratio changes
AllowFinalDriveChanges=0		// Whether to allow final drive ratio changes
FinalDriveSetting=1
ReverseSetting=0
ForwardGears=5
Gear1Setting=0
Gear2Setting=1
Gear3Setting=2
Gear4Setting=3
Gear5Setting=5
DiffPumpTorque=170.0                // at 100% pump diff setting, the torque redirected per wheelspeed difference in radians/sec (roughly 1.2kph)
DiffPumpRange=(0.60, 0.05, 0)
DiffPumpSetting=0
DiffPowerRange=(0.60,0.00,0)        // fraction of power-side input torque transferred through diff
DiffPowerSetting=0                  // (not implemented for four-wheel drive)
DiffCoastRange=(0.20,0.00,0)        // fraction of coast-side input torque transferred through diff
DiffCoastSetting=0                 // (not implemented for four-wheel drive)
DiffPreloadRange=(35.0, 0.0, 0)     // preload torque that must be overcome to have wheelspeed difference
DiffPreloadSetting=0  
    
[FRONTLEFT]
BumpTravel=-0.0750
ReboundTravel=-0.100
BumpStopSpring=150000.0             // initial spring rate of bumpstop
BumpStopRisingSpring=2.00e7
BumpStopDamper=2500.0
BumpStopRisingDamper=7.00e5
BumpStage2=0.090
ReboundStage2=-0.090
FrictionTorque=2.50                 // Newton-meters of friction between spindle and wheel
SpinInertia=1.350                   // inertia in pitch direction including any axle
CGOffsetX=0.000                     // x-offset from graphical center to physical center (NOT IMPLEMENTED)
PushrodSpindle=(-0.200, -0.000, 0.000)// left to right connection on lower wishbone, height of spring from lower wishbone
PushrodBody=(-0.260, 0.300, 0.000)  // left to right of top of spring, height of top of spring
CamberRange=(-5.0, 0.1, 81)
CamberSetting=20
PressureRange=(150.0, 1.0, 31)
PressureSetting=5
PackerRange=(0.000, 0.0, 0)
PackerSetting=0
SpringMult=1.0
SpringRange=(80000.0, 2000.0, 11)
SpringSetting=3
RideHeightRange=(0.090, 0.001, 20)
RideHeightSetting=10
DamperMult=1.0
SlowBumpRange=(3600.0, 100.0, 11)
SlowBumpSetting=5
FastBumpRange=(2250.0, 100.0, 11)
FastBumpSetting=5
SlowReboundRange=(4400.0, 200.0, 11)
SlowReboundSetting=5
FastReboundRange=(3100.0, 200.0, 11)
FastReboundSetting=5
BrakeDiscRange=(0.035, 0.000, 0)    // disc thickness
BrakeDiscSetting=0
BrakePadRange=(0, 1, 5)             // pad type (not implemented)
BrakePadSetting=2
BrakeDiscInertia=1.25              // inertia per meter of thickness
BrakeOptimumTemp=450.0              // optimum brake temperature in Celsius
BrakeFadeRange=450.0               // temperature outside of optimum that brake grip drops to half (too hot or too cold)
BrakeWearRate=1.215e-011             // meters of wear per second at optimum temperature
BrakeFailure=(1.33e-002,7.20e-004)  // average and variation in disc thickness at failure
BrakeTorque=2510.0                  // maximum brake torque at zero wear and optimum temp
BrakeHeating=0.0005                 // heat added linearly with brake torque
BrakeCooling=(1.910e-002,0.667e-004)  // minimum brake cooling rate (static and per unit velocity)
BrakeDuctCooling=2.000e-004         // brake cooling rate per brake duct setting

[FRONTRIGHT]
BumpTravel=-0.0750
ReboundTravel=-0.100
BumpStopSpring=150000.0             // initial spring rate of bumpstop
BumpStopRisingSpring=2.00e7
BumpStopDamper=2500.0
BumpStopRisingDamper=7.00e5
BumpStage2=0.090
ReboundStage2=-0.090
FrictionTorque=2.50                 // Newton-meters of friction between spindle and wheel
SpinInertia=1.350                   // inertia in pitch direction including any axle
CGOffsetX=0.000                     // x-offset from graphical center to physical center (NOT IMPLEMENTED)
PushrodSpindle=(0.200, -0.000, 0.000)// spring/damper connection to spindle or axle (relative to wheel center)
PushrodBody=(0.260, 0.300, 0.000)   // spring/damper connection to body (relative to wheel center)
CamberRange=(-5.0, 0.1, 81)
CamberSetting=20
PressureRange=(150.0, 1.0, 31)
PressureSetting=5
PackerRange=(0.000, 0.0, 0)
PackerSetting=0
SpringMult=1.0
SpringRange=(80000.0, 2000.0, 11)
SpringSetting=3
RideHeightRange=(0.090, 0.001, 20)
RideHeightSetting=10
DamperMult=1.0
SlowBumpRange=(3600.0, 100.0, 11)
SlowBumpSetting=5
FastBumpRange=(2250.0, 100.0, 11)
FastBumpSetting=5
SlowReboundRange=(4400.0, 200.0, 11)
SlowReboundSetting=5
FastReboundRange=(3100.0, 200.0, 11)
FastReboundSetting=5
BrakeDiscRange=(0.035, 0.000, 0)    // disc thickness
BrakeDiscSetting=0
BrakePadRange=(0, 1, 5)             // pad type (not implemented)
BrakePadSetting=2
BrakeDiscInertia=1.25              // inertia per meter of thickness
BrakeOptimumTemp=450.0              // optimum brake temperature in Celsius
BrakeFadeRange=450.0               // temperature outside of optimum that brake grip drops to half (too hot or too cold)
BrakeWearRate=1.215e-011             // meters of wear per second at optimum temperature
BrakeFailure=(1.33e-002,7.20e-004)  // average and variation in disc thickness at failure
BrakeTorque=2510.0                  // maximum brake torque at zero wear and optimum temp
BrakeHeating=0.0005                 // heat added linearly with brake torque
BrakeCooling=(1.910e-002,0.667e-004)  // minimum brake cooling rate (static and per unit velocity)
BrakeDuctCooling=2.000e-004         // brake cooling rate per brake duct setting

[REARLEFT]
BumpTravel=-0.0350
ReboundTravel=-0.250
BumpStopSpring=140000.0             // initial spring rate of bumpstop
BumpStopRisingSpring=2.00e7
BumpStopDamper=2500.0
BumpStopRisingDamper=7.00e5
BumpStage2=0.090
ReboundStage2=-0.090
FrictionTorque=1.50                 // Newton-meters of friction between spindle and wheel
SpinInertia=1.727                   // inertia in pitch direction including any axle
CGOffsetX=-0.000                    // x-offset from graphical center to physical center (NOT IMPLEMENTED)
PushrodSpindle=(-0.200, -0.000, 0.000)// left to right connection on lower wishbone, height of spring from lower wishbone
PushrodBody=(-0.270, 0.300, 0.000)  // left to right of top of spring, height of top of spring
CamberRange=(-5.0, 0.1, 81)
CamberSetting=20
PressureRange=(150.0, 1.0, 31)
PressureSetting=5
PackerRange=(0.000, 0.0, 0)
PackerSetting=0
SpringMult=1.00
SpringRange=(70500.0, 2000.0, 11)
SpringSetting=3
RideHeightRange=(0.110, 0.001, 20)
RideHeightSetting=10
DamperMult=1.00
SlowBumpRange=(3200.0, 100.0, 11)
SlowBumpSetting=5
FastBumpRange=(1850.0, 100.0, 11)
FastBumpSetting=5
SlowReboundRange=(4000.0, 200.0, 11)
SlowReboundSetting=5
FastReboundRange=(2700.0, 200.0, 11)
FastReboundSetting=5
BrakeDiscRange=(0.032, 0.000, 0)    // disc thickness
BrakeDiscSetting=0
BrakePadRange=(0, 1, 5)             // pad type (not implemented)
BrakePadSetting=2
BrakeDiscInertia=0.001              // inertia per meter of thickness
BrakeOptimumTemp=450.0              // optimum brake temperature in Celsius (peak brake grip)
BrakeFadeRange=450.0               // temperature outside of optimum that brake grip drops to half (too hot or too cold)
BrakeWearRate=1.215e-011             // meters of wear per second at optimum temperature
BrakeFailure=(1.33e-002,7.20e-004)  // average and variation in disc thickness at failure
BrakeTorque=2060.0                  // maximum brake torque at zero wear and optimum temp
BrakeHeating=0.0005                 // heat added linearly with brake torque
BrakeCooling=(1.435e-002,0.268e-004)  // minimum brake cooling rate (static and per unit velocity)
BrakeDuctCooling=1.200e-004         // brake cooling rate per brake duct setting

[REARRIGHT]
BumpTravel=-0.0350
ReboundTravel=-0.250
BumpStopSpring=140000.0             // initial spring rate of bumpstop
BumpStopRisingSpring=2.00e7
BumpStopDamper=2500.0
BumpStopRisingDamper=7.00e5
BumpStage2=0.090
ReboundStage2=-0.090
FrictionTorque=1.50                 // Newton-meters of friction between spindle and wheel
SpinInertia=1.727                   // inertia in pitch direction including any axle
CGOffsetX=0.000                     // x-offset from graphical center to physical center (NOT IMPLEMENTED)
PushrodSpindle=(0.200, -0.000, 0.000)// spring/damper connection to spindle or axle (relative to wheel center)
PushrodBody=(0.270, 0.300, 0.000)   // spring/damper connection to body (relative to wheel center)
CamberRange=(-5.0, 0.1, 81)
CamberSetting=20
PressureRange=(150.0, 1.0, 31)
PressureSetting=5
PackerRange=(0.000, 0.0, 0)
PackerSetting=0
SpringMult=1.00
SpringRange=(70500.0, 2000.0, 11)
SpringSetting=3
RideHeightRange=(0.110, 0.001, 20)
RideHeightSetting=10
DamperMult=1.00
SlowBumpRange=(3200.0, 100.0, 11)
SlowBumpSetting=5
FastBumpRange=(1850.0, 100.0, 11)
FastBumpSetting=5
SlowReboundRange=(4000.0, 200.0, 11)
SlowReboundSetting=5
FastReboundRange=(2700.0, 200.0, 11)
FastReboundSetting=5
BrakeDiscRange=(0.032, 0.000, 0)    // disc thickness
BrakeDiscSetting=0
BrakePadRange=(0, 1, 5)             // pad type (not implemented)
BrakePadSetting=2
BrakeDiscInertia=0.001              // inertia per meter of thickness
BrakeOptimumTemp=450.0              // optimum brake temperature in Celsius (peak brake grip)
BrakeFadeRange=450.0               // temperature outside of optimum that brake grip drops to half (too hot or too cold)
BrakeWearRate=1.215e-011             // meters of wear per second at optimum temperature
BrakeFailure=(1.33e-002,7.20e-004)  // average and variation in disc thickness at failure
BrakeTorque=2060.0                  // maximum brake torque at zero wear and optimum temp
BrakeHeating=0.0005                 // heat added linearly with brake torque
BrakeCooling=(1.435e-002,0.268e-004)  // minimum brake cooling rate (static and per unit velocity)
BrakeDuctCooling=1.200e-004         // brake cooling rate per brake duct setting
