API Docs for: 0.7.1
Show:

WheelConstraint Class

Constructor

WheelConstraint

(
  • vehicle
  • [options]
)

Parameters:

  • vehicle Vehicle
  • [options] Object optional
    • [localForwardVector] Array optional

      The local wheel forward vector in local body space. Default is zero.

    • [localPosition] Array optional

      The local position of the wheen in the chassis body. Default is zero - the center of the body.

    • [sideFriction=5] Array optional

      The max friction force in the sideways direction.

Methods

getSpeed

()

setForwardFriction

()

setSideFriction

()

update

()

Properties

engineForce

Number

localForwardVector

Array

localPosition

Array

steerValue

Number