new Box2dFrictionJoint(objectA, objectB, anchor, collide)box2d.js:2231Create a friction joint
objectABox2dObjectobjectBBox2dObjectanchorVector2 optionalWorld position, objectB's position if not given
collideboolean optional, default false
Box2D Friction Joint
Extends Box2dJoint
new Box2dFrictionJoint(objectA, objectB, anchor, collide)box2d.js:2231Create a friction joint
objectA Box2dObjectobjectB Box2dObjectanchor Vector2 optionalWorld position, objectB's position if not given
collide boolean optional, default falsegetLocalAnchorA() → Vector2box2d.js:2255Get the local anchor point relative to objectA's origin
getLocalAnchorB() → Vector2box2d.js:2259Get the local anchor point relative to objectB's origin
getMaxForce() → numberbox2d.js:2267Get the maximum friction force
getMaxTorque() → numberbox2d.js:2275Get the maximum friction torque