new Box2dWeldJoint(objectA, objectB, anchor, collide)box2d.js:2029Create a weld joint
objectABox2dObjectobjectBBox2dObjectanchorVector2 optionalWorld position, objectB's position if not given
collideboolean optional, default false
Box2D Weld Joint
Extends Box2dJoint
new Box2dWeldJoint(objectA, objectB, anchor, collide)box2d.js:2029Create a weld joint
objectA Box2dObjectobjectB Box2dObjectanchor Vector2 optionalWorld position, objectB's position if not given
collide boolean optional, default falsegetDampingRatio() → numberbox2d.js:2081Get how much the weld's spring is damped, 0 for none and 1 to stop it bouncing
getFrequency() → numberbox2d.js:2073Get the frequency in Hertz
getLocalAnchorA() → Vector2box2d.js:2057Get the local anchor point relative to objectA's origin
getLocalAnchorB() → Vector2box2d.js:2061Get the local anchor point relative to objectB's origin
getReferenceAngle() → numberbox2d.js:2065Get the reference angle, objectB angle minus objectA angle in the reference state
setDampingRatio(ratio)box2d.js:2077Set how much the weld's spring is damped, 0 for none and 1 to stop it bouncing
ratio number