Skip to content

Interface: MotorJointOpt

Motor joint definition.

Extends

Extended by

Properties

angularOffset?

optional angularOffset: number

The bodyB angle minus bodyA angle in radians.


collideConnected?

optional collideConnected: boolean

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

Inherited from

JointOpt.collideConnected


correctionFactor?

optional correctionFactor: number

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


linearOffset?

optional linearOffset: Vec2Value

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


maxForce?

optional maxForce: number

The maximum motor force in N.


maxTorque?

optional maxTorque: number

The maximum motor torque in N-m.


style?

optional style: Style

Styling for dev-tools.

Inherited from

JointOpt.style


userData?

optional userData: any

Use this to attach application specific data to your joints.

Inherited from

JointOpt.userData