WheelInfo Class
Constructor
WheelInfo
(
-
[options]
Parameters:
-
[options]
Object optional-
[chassisConnectionPointLocal]
Vec3 optional -
[chassisConnectionPointWorld]
Vec3 optional -
[directionLocal]
Vec3 optional -
[directionWorld]
Vec3 optional -
[axleLocal]
Vec3 optional -
[axleWorld]
Vec3 optional -
[suspensionRestLength=1]
Number optional -
[suspensionMaxLength=2]
Number optional -
[radius=1]
Number optional -
[suspensionStiffness=100]
Number optional -
[dampingCompression=10]
Number optional -
[dampingRelaxation=10]
Number optional -
[frictionSlip=10000]
Number optional -
[steering=0]
Number optional -
[rotation=0]
Number optional -
[deltaRotation=0]
Number optional -
[rollInfluence=0.01]
Number optional -
[maxSuspensionForce]
Number optional -
[isFrontWheel=true]
Boolean optional -
[clippedInvContactDotSuspension=1]
Number optional -
[suspensionRelativeVelocity=0]
Number optional -
[suspensionForce=0]
Number optional -
[skidInfo=0]
Number optional -
[suspensionLength=0]
Number optional -
[maxSuspensionTravel=1]
Number optional -
[useCustomSlidingRotationalSpeed=false]
Boolean optional -
[customSlidingRotationalSpeed=-0.1]
Number optional
-
Item Index
Properties
- axleLocal
- axleWorld
- brake
- chassisConnectionPointLocal
- chassisConnectionPointWorld
- clippedInvContactDotSuspension
- customSlidingRotationalSpeed
- dampingCompression
- dampingRelaxation
- deltaRotation
- directionLocal
- directionWorld
- engineForce
- forwardImpulse
- frictionSlip
- isFrontWheel
- isInContact
- maxSuspensionForce
- maxSuspensionTravel
- radius
- raycastResult
- rollInfluence
- rotation
- sideImpulse
- skidInfo
- sliding
- steering
- suspensionForce
- suspensionLength
- suspensionMaxLength
- suspensionRelativeVelocity
- suspensionRestLength
- suspensionStiffness
- useCustomSlidingRotationalSpeed
- worldTransform
Properties
brake
Number
clippedInvContactDotSuspension
Number
customSlidingRotationalSpeed
Number
Speed to apply to the wheel rotation when the wheel is sliding.
dampingCompression
Number
dampingRelaxation
Number
deltaRotation
Number
engineForce
Number
forwardImpulse
Number
frictionSlip
Number
isFrontWheel
Number
isInContact
Boolean
maxSuspensionForce
Number
maxSuspensionTravel
Number
Max travel distance of the suspension, in meters.
radius
Number
rollInfluence
Number
rotation
Number
Rotation value, in radians.
sideImpulse
Number
skidInfo
Number
sliding
Boolean
steering
Number
suspensionForce
Number
suspensionLength
Number
suspensionMaxLength
Number
suspensionRelativeVelocity
Number
suspensionRestLength
Number
suspensionStiffness
Number
useCustomSlidingRotationalSpeed
Boolean
If the customSlidingRotationalSpeed should be used.