new Box2dMotorJoint(objectA, objectB)box2d.js:2273Create a motor joint
objectABox2dObjectobjectBBox2dObject
Box2D Motor Joint
Extends Box2dJoint
new Box2dMotorJoint(objectA, objectB)box2d.js:2273Create a motor joint
objectA Box2dObjectobjectB Box2dObjectgetAngularOffset() → numberbox2d.js:2305Get the target angular offset, objectB angle minus objectA angle, clockwise like angle
getCorrectionFactor() → numberbox2d.js:2329Get the position correction factor in the range [0,1]
getLinearOffset() → Vector2box2d.js:2297Get the target linear offset, in frame A, in meters
getMaxForce() → numberbox2d.js:2313Get the maximum force
getMaxTorque() → numberbox2d.js:2321Get the maximum torque
setAngularOffset(offset)box2d.js:2301Set the target angular offset, objectB angle minus objectA angle, clockwise like angle
offset numbersetCorrectionFactor(factor)box2d.js:2325Set the position correction factor in the range [0,1]
factor numbersetLinearOffset(offset)box2d.js:2293Set the target linear offset, in frame A, in meters
offset Vector2