API Docs for: 0.6.1
Show:

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

Properties

axleLocal

Vec3

axleWorld

Vec3

brake

Number

chassisConnectionPointLocal

Vec3

Connection point, defined locally in the chassis body frame.

chassisConnectionPointWorld

Vec3

clippedInvContactDotSuspension

Number

customSlidingRotationalSpeed

Number

Speed to apply to the wheel rotation when the wheel is sliding.

dampingCompression

Number

dampingRelaxation

Number

deltaRotation

Number

directionLocal

Vec3

directionWorld

Vec3

engineForce

Number

forwardImpulse

Number

frictionSlip

Number

isFrontWheel

Number

isInContact

Boolean

maxSuspensionForce

Number

maxSuspensionTravel

Number

Max travel distance of the suspension, in meters.

radius

Number

raycastResult

RaycastResult

The result from raycasting

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.

worldTransform

Transform

Wheel world transform