API Docs for: 0.7.1
Show:

WheelConstraint Class

构造器

WheelConstraint

(
  • vehicle
  • [options]
)

参数:

  • vehicle Vehicle
  • [options] Object 可选
    • [localForwardVector] Array 可选

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

    • [localPosition] Array 可选

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

    • [sideFriction=5] Array 可选

      The max friction force in the sideways direction.

Methods

getSpeed

()

setForwardFriction

()

setSideFriction

()

update

()

Properties

engineForce

Number

localForwardVector

Array

localPosition

Array

steerValue

Number