Skip to content

Interface: MotorJointDef

Motor joint definition.

Extends

Properties

angularOffset?

optional angularOffset: number

The bodyB angle minus bodyA angle in radians.

Inherited from

MotorJointOpt.angularOffset


bodyA

bodyA: Body

The first attached body.

Inherited from

JointDef.bodyA


bodyB

bodyB: Body

The second attached body.

Inherited from

JointDef.bodyB


collideConnected?

optional collideConnected: boolean

Set this flag to true if the attached bodies should collide.

Inherited from

JointDef.collideConnected


correctionFactor?

optional correctionFactor: number

Position correction factor in the range [0,1].

Inherited from

MotorJointOpt.correctionFactor


linearOffset?

optional linearOffset: Vec2Value

Position of bodyB minus the position of bodyA, in bodyA's frame, in meters.

Inherited from

MotorJointOpt.linearOffset


maxForce?

optional maxForce: number

The maximum motor force in N.

Inherited from

MotorJointOpt.maxForce


maxTorque?

optional maxTorque: number

The maximum motor torque in N-m.

Inherited from

MotorJointOpt.maxTorque


style?

optional style: Style

Styling for dev-tools.

Inherited from

JointDef.style


userData?

optional userData: any

Use this to attach application specific data to your joints.

Inherited from

JointDef.userData