src/objects/RaycastVehicle.js:10
 Vehicle helper class that casts rays from the wheel positions towards the ground and applies forces.
RaycastVehicle[options]
 
 Defined in
 src/objects/RaycastVehicle.js:10
 
[options]
 Object
 optional
 
 
 
 
 [chassisBody]
 Body 
 optional
 
 The car chassis body.
[indexRightAxis]
 Integer
 optional
 
 Axis to use for right. x=0, y=1, z=2
[indexLeftAxis]
 Integer
 optional
 
 
 
 [indexUpAxis]
 Integer
 optional
 
 
 
 addToWorldworld
 
 Defined in
 src/objects/RaycastVehicle.js:122
 
Add the vehicle including its constraints to the world.
world
 World 
 
 addWheel[options]
 
 Defined in
 src/objects/RaycastVehicle.js:74
 
Add a wheel. For information about the options, see WheelInfo.
[options]
 Object
 optional
 
 applyEngineForcevalue
 wheelIndex
 
 Defined in
 src/objects/RaycastVehicle.js:102
 
Set the wheel force to apply on one of the wheels each time step
value
 Number
 
 wheelIndex
 Integer
 
 getVehicleAxisWorldaxisIndex
 result
 
 Defined in
 src/objects/RaycastVehicle.js:138
 
Get one of the wheel axles, world-oriented.
axisIndex
 Integer
 
 result
 Vec3 
 
 getWheelTransformWorldwheelIndex
 
 Defined in
 src/objects/RaycastVehicle.js:428
 
Get the world transform of one of the wheels
wheelIndex
 Integer
 
 removeFromWorldworld
 
 Defined in
 src/objects/RaycastVehicle.js:279
 
Remove the vehicle including its constraints from the world.
world
 World 
 
 setBrakebrake
 wheelIndex
 
 Defined in
 src/objects/RaycastVehicle.js:112
 
Set the braking force of a wheel
brake
 Number
 
 wheelIndex
 Integer
 
 setSteeringValuevalue
 wheelIndex
 
 Defined in
 src/objects/RaycastVehicle.js:89
 
Set the steering value of a wheel.
value
 Number
 
 wheelIndex
 Integer
 
 updateWheelTransformwheelIndex
 
 Defined in
 src/objects/RaycastVehicle.js:380
 
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.
wheelIndex
 Integer
 The wheel index to update.
indexForwardAxis
 Defined in
 src/objects/RaycastVehicle.js:51
 
Index of the forward axis, 0=x, 1=y, 2=z
Default: 0
indexRightAxis
 Defined in
 src/objects/RaycastVehicle.js:44
 
Index of the right axis, 0=x, 1=y, 2=z
Default: 1
indexUpAxis
 Defined in
 src/objects/RaycastVehicle.js:58
 
Index of the up axis, 0=x, 1=y, 2=z
Default: 2
sliding
 Defined in
 src/objects/RaycastVehicle.js:33
 
Will be set to true if the car is sliding.