new Box2dMotorJoint(objectA, objectB)box2d.js:2216Create a motor joint
objectABox2dObjectobjectBBox2dObject
Box2D Motor Joint
Extends Box2dJoint
new Box2dMotorJoint(objectA, objectB)box2d.js:2216Create a motor joint
objectA Box2dObjectobjectB Box2dObjectgetAngularOffset() → numberbox2d.js:2247Get the target angular offset, objectB angle minus objectA angle, clockwise like angle
getCorrectionFactor() → numberbox2d.js:2271Get the position correction factor in the range [0,1]
getLinearOffset() → Vector2box2d.js:2239Get the target linear offset, in frame A, in meters
getMaxForce() → numberbox2d.js:2255Get the maximum force
getMaxTorque() → numberbox2d.js:2263Get the maximum torque
setAngularOffset(offset)box2d.js:2243Set the target angular offset, objectB angle minus objectA angle, clockwise like angle
offset numbersetCorrectionFactor(factor)box2d.js:2267Set the position correction factor in the range [0,1]
factor numbersetLinearOffset(offset)box2d.js:2235Set the target linear offset, in frame A, in meters
offset Vector2