First connected body.
Second connected body.
Damping of the spring.
Anchor for bodyA in local bodyA coordinates.
Anchor for bodyB in local bodyB coordinates.
Rest length of the spring. Can be set dynamically.
Stiffness of the spring.
Get the anchor point on body A, in world coordinates.
Set the anchor point on body B, using world coordinates.
Set the anchor point on body A, using world coordinates.
Set the anchor point on body B, using world coordinates.
A spring, connecting two bodies.
The Spring explicitly adds force and angularForce to the bodies.
Example