new Box2dMotorJoint(objectA, objectB)box2d.js:2357Create a motor joint
objectABox2dObjectobjectBBox2dObject
Box2D Motor Joint
Extends Box2dJoint
new Box2dMotorJoint(objectA, objectB)box2d.js:2357Create a motor joint
objectA Box2dObjectobjectB Box2dObjectgetAngularOffset() → numberbox2d.js:2389Get the target angular offset, objectB angle minus objectA angle, clockwise like angle
getCorrectionFactor() → numberbox2d.js:2413Get the position correction factor in the range [0,1]
getLinearOffset() → Vector2box2d.js:2381Get the target linear offset, in frame A, in meters
getMaxForce() → numberbox2d.js:2397Get the maximum force
getMaxTorque() → numberbox2d.js:2405Get the maximum torque
setAngularOffset(offset)box2d.js:2385Set the target angular offset, objectB angle minus objectA angle, clockwise like angle
offset numbersetCorrectionFactor(factor)box2d.js:2409Set the position correction factor in the range [0,1]
factor numbersetLinearOffset(offset)box2d.js:2377Set the target linear offset, in frame A, in meters
offset Vector2