WheelJoint

WheelJoint

new WheelJoint(spriteA, spriteB)

Wheel joints can be used to create vehicles! By default the motor is disabled, angle is 90 degrees, maxPower is 1000, springiness is 0.1, and damping is 0.7.
Source:
Parameters:
Name Type Description
spriteA Sprite the vehicle body
spriteB Sprite the wheel

Extends

Classes

WheelJoint

Members

angle :Number

The angle at which the wheel is attached to the vehicle body. The default is 90 degrees or PI/2 radians, which is vertical.
Default Value:
  • 90
Source:
Type:
  • Number