[17:7] extends: Joint
Wraps jbox2d's DistanceJoint (com.almasb.fxgl.physics.box2d.dynamics.joints.DistanceJoint). Holds two bodies at a target separation distance with optional spring (frequency / damping) behaviour. Created via World.createJoint(DistanceJointDef).
DistanceJoint ()
Empty default constructor; populated by adopt.
adopt (object Ajo)
Wraps an existing DistanceJoint AussomJavaObject.
getLength ()
setLength (double V)
getFrequency ()
setFrequency (double Hz)
getDampingRatio ()
setDampingRatio (double V)
getLocalAnchorA ()
Returns the local anchor on body A as a Vec2 wrapper.
getLocalAnchorB ()
Returns the local anchor on body B as a Vec2 wrapper.