Vehicle.vehcarsim

The aim of this article is to breakdown the *.vehcarsim (vehicle physics) filetype, as to understand it better. *.vehcarsim files are essentially text or *.txt files with no formatting. They can be opened using bundled software that comes with Microsoft Windows such as Wordpad or Notepad, or alternatives such as Notepad++.

This file would typically located in vehicle.ar/tune/vehicle/basename.vehcarsim.

Example "vehicle.vehcarsim" file
Text from file; type: a vehCarSim { Mass 1660.000000 InertiaBox 2.000000	1.300000	3.000000 CenterOfGravity 0.000000	-0.15000	0.00000 BoundFriction 0.500000 BoundElasticity 0.500000 DrivetrainType 2 SSSValue 1.000000 SSSThreshold 0.000000 CarFrictionHandling 1.000000 Aero { AngCDamp 9.000000	4.000000	3.000000 AngVelDamp 0.000000	0.000000	0.000000 AngVel2Damp 3.999998	5.000000	0.000000 Drag 0.30000 Down 0.00000 } Engine { AngInertia .6000000 MaxHorsePower 670.000000 IdleRPM 500.000000 OptRPM 6500.000000 MaxRPM 8000.000000 GCL 0.250001000 } Trans { ManualNumGears 8 AutoNumGears 8 Reverse 25.000000 Low 35.000023 High 131.000000 GearBias 0.500000 UpshiftBias 0.006000 DownshiftBiasMin 0.050000 DownshiftBiasMax 0.300000 GearChangeTime 1.000000 } Drivetrain { AngInertia 5000.000000 BrakeDynamicCoef 1.000000 BrakeStaticCoef 1.200000 } Freetrain { AngInertia 2000.000000 BrakeDynamicCoef 1.000000 BrakeStaticCoef 1.200000 } WheelFront { SuspensionExtent 0.150000 SuspensionLimit 0.100000 SuspensionFactor 1.30000 SuspensionDampCoef 0.070000 SteeringLimit 0.400000 SteeringOffset 0.250000 BrakeCoef 0.35000 HandbrakeCoef 3.900000 CamberLimit -0.200000 WobbleLimit 0.000000 TireDispLimitLong 0.125000 TireDampCoefLong 0.250000 TireDragCoefLong 0.020000 TireDispLimitLat 0.125000 TireDampCoefLat 0.250000 TireDragCoefLat 0.050000 OptimumSlipPercent 0.3000000 StaticFric 2.800000 SlidingFric 1.7 } WheelBack { SuspensionExtent 0.150000 SuspensionLimit 0.10000 SuspensionFactor 0.30000 SuspensionDampCoef 0.070000 SteeringLimit 0.000000 SteeringOffset 0.000000 BrakeCoef 0.360000 HandbrakeCoef 2.000000 CamberLimit -1.000000 WobbleLimit 0.000000 TireDispLimitLong 0.125000 TireDampCoefLong 0.250000 TireDragCoefLong 0.070000 TireDispLimitLat 0.125000 TireDampCoefLat 0.250000 TireDragCoefLat 0.050000 OptimumSlipPercent 0.10000 StaticFric 2.700000 SlidingFric 1.3 } AxleFront { TorqueCoef 1.000000 DampCoef 0.500000 } AxleBack { TorqueCoef 1.000000 DampCoef 0.500000 } }

Variants
The game also supports 2 variations of this file, the first vehicle_opp.vehcarsim will control opponent physics, should they need to be different from the player physics, due to the AI's different driving style or to control the AI difficulty levels by varying horsepower or such.

The second variant is vehicle_cop.vehcarsim and this file, will control police opponents. In terms of content, there is no difference between the 3 files - vehicle.vehcarsim, and the opp/cop variants. Neither file posses any additional functionality over another variant.

If the game detects that either vehicle_opp.vehcarsim or vehicle_cop.vehcarsim is not present, it will use the vehicle.vehcarsim as the default preset for all situations. However if the default vehicle.vehcarsim is not present, it can lead to a fatal crash.