The car chassis body.
Index of the forward axis. x=0, y=1, z=2
Index of the right axis. x=0, y=1, z=2
Index of the up axis. x=0, y=1, z=2
The car chassis body.
The constraints.
Index of the forward axis. x=0, y=1, z=2
Index of the right axis. x=0, y=1, z=2
Index of the up axis. x=0, y=1, z=2
Number of wheels on the ground.
Optional pre-step callback.
Will be set to true if the car is sliding.
The wheels.
Add the vehicle including its constraints to the world.
Add a wheel. For information about the options, see WheelInfo
.
Set the wheel force to apply on one of the wheels each time step
Get the world transform of one of the wheels
Remove the vehicle including its constraints from the world.
Set the braking force of a wheel
Set the steering value of a wheel.
Update one of the wheel transform. Note when rendering wheels: during each step, wheel transforms are updated BEFORE the chassis; ie. their position becomes invalid after the step. Thus when you render wheels, you must update wheel transforms before rendering them. See raycastVehicle demo for an example.
The wheel index to update.
Vehicle helper class that casts rays from the wheel positions towards the ground and applies forces.