new Box2dMotorJoint(objectA, objectB)box2d.js:2251Create a motor joint
objectABox2dObjectobjectBBox2dObject
Box2D Motor Joint
Extends Box2dJoint
new Box2dMotorJoint(objectA, objectB)box2d.js:2251Create a motor joint
objectA Box2dObjectobjectB Box2dObjectgetAngularOffset() → numberbox2d.js:2282Get the target angular offset, objectB angle minus objectA angle, clockwise like angle
getCorrectionFactor() → numberbox2d.js:2306Get the position correction factor in the range [0,1]
getLinearOffset() → Vector2box2d.js:2274Get the target linear offset, in frame A, in meters
getMaxForce() → numberbox2d.js:2290Get the maximum force
getMaxTorque() → numberbox2d.js:2298Get the maximum torque
setAngularOffset(offset)box2d.js:2278Set the target angular offset, objectB angle minus objectA angle, clockwise like angle
offset numbersetCorrectionFactor(factor)box2d.js:2302Set the position correction factor in the range [0,1]
factor numbersetLinearOffset(offset)box2d.js:2270Set the target linear offset, in frame A, in meters
offset Vector2