Appearance
Interface: MotorJointDef
Motor joint definition.
Extends
Properties
angularOffset?
optionalangularOffset:number
The bodyB angle minus bodyA angle in radians.
Inherited from
bodyA
bodyA:
Body
The first attached body.
Inherited from
bodyB
bodyB:
Body
The second attached body.
Inherited from
collideConnected?
optionalcollideConnected:boolean
Set this flag to true if the attached bodies should collide.
Inherited from
correctionFactor?
optionalcorrectionFactor:number
Position correction factor in the range [0,1].
Inherited from
MotorJointOpt.correctionFactor
linearOffset?
optionallinearOffset:Vec2Value
Position of bodyB minus the position of bodyA, in bodyA's frame, in meters.
Inherited from
maxForce?
optionalmaxForce:number
The maximum motor force in N.
Inherited from
maxTorque?
optionalmaxTorque:number
The maximum motor torque in N-m.
Inherited from
style?
optionalstyle:Style
Styling for dev-tools.
Inherited from
userData?
optionaluserData:any
Use this to attach application specific data to your joints.