new Box2dFrictionJoint(objectA, objectB, anchor, collide)box2d.js:2147Create 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:2147Create a friction joint
objectA Box2dObjectobjectB Box2dObjectanchor Vector2 optionalWorld position, objectB's position if not given
collide boolean optional, default falsegetLocalAnchorA() → Vector2box2d.js:2171Get the local anchor point relative to objectA's origin
getLocalAnchorB() → Vector2box2d.js:2175Get the local anchor point relative to objectB's origin
getMaxForce() → numberbox2d.js:2183Get the maximum friction force
getMaxTorque() → numberbox2d.js:2191Get the maximum friction torque