An anti rollbar is a stiff spring that connects two wheels to reduce the amount of roll the vehicle makes in sharp corners See: Anti-roll Bar
Fraction of half the wheel width (or wheel radius if it is smaller) that is used as the convex radius.
Cast fraction.
Max angle that is considered for colliding wheels. This is to avoid colliding with vertical walls.
Angle in radians.
Object layer to test collision with.
Object layer number.
Sets the radius of the sphere used in cast. Note, that castType needs to be set to
VEHICLE_CAST_TYPE_SPHERE
for this to be used.
Sphere radius.
Collision tester that tests wheels collision. Following types available:
VEHICLE_CAST_TYPE_RAY
VEHICLE_CAST_TYPE_SPHERE
VEHICLE_CAST_TYPE_CYLINDER
Cast type number.
How long it takes to release the clutch (go to full friction), only used when mode
is set to TRANSMISSION_AUTO
.
Clutch release time.
Strength of the clutch when fully engaged. Total torque a clutch applies is
Torque = ClutchStrength * (Velocity Engine - Avg Velocity Wheels At Clutch)
Clutch strength
Ratio in rotation rate between engine and gear box, first element is 1st gear, 2nd element 2nd gear etc.
Array of gears.
Moment of inertia of the engine.
Moment of inertia.
Defines the maximum pitch/roll angle, can be used to avoid the car from getting upside down. The vehicle up direction will stay within a cone centered around the up axis with half top angle maxPitchRollAngle, set to pi to turn off.
Max pitch/roll angle in radians.
Max amount of revolutions per minute the engine can generate.
Max RPM.
Max amount of torque that the engine can deliver.
Max torque.
Min amount of revolutions per minute the engine can produce without stalling.
Min RPM.
How to switch gears. Following modes available:
TRANSMISSION_AUTO
TRANSMISSION_MANUAL
Gear switch mode.
Override for the number of solver position iterations to run. If set to 0
, the constraint
will use global default set by Physics initialization setting
JoltInitSettings.numPositionSteps.
Override for the number of solver velocity iterations to run. If set to 0
, the constraint
will use global default set by Physics initialization setting
JoltInitSettings.numVelocitySteps.
Ratio in rotation rate between engine and gear box when driving in reverse.
Rotation ratios.
If RPM of engine is smaller then this we will shift a gear down, only used when mode
is set to TRANSMISSION_AUTO
.
Lower RPM threshold.
If RPM of engine is bigger then this we will shift a gear up, only used when mode
is set to TRANSMISSION_AUTO
.
Upper RPM threshold.
How long to wait after releasing the clutch before another switch is attempted (s), only
used when mode is set to TRANSMISSION_AUTO
.
Clutch switch time.
How long it takes to switch gears, only used only used when mode is set to
TRANSMISSION_AUTO
.
Gear switch time.
Angular damping factor of the wheel:
dw/dt = -c * w
Angular damping.
Sets driver steering input for the vehicle.
Forward input in [-1:1] range.
Right input for wheeled and moto vehicles in [-1:1] range. Left ratio for tracked vehicle in [-1:1] range.
Brake input for wheeled and moto vehicles in [0:1] range. Right ratio for tracked vehicle in [-1:1] range.
Hand brake for wheeled and moto vehicles in [0:1] range. Brake input for tracked vehicle in [0:1] range.
Base class for different types of vehicles.