Skip to main content

MotorJoint

Description:

  A joint that applies a rotational or linear force to a physics body.

Inherits from: Joint.

enabled

Type: Field.

Description:

  Whether or not the motor joint is enabled.

Signature:

enabled: boolean

force

Type: Field.

Description:

  The force applied to the motor joint.

Signature:

force: number

speed

Type: Field.

Description:

  The speed of the motor joint.

Signature:

speed: number