Constructor.
The first attached body.
The second attached body.
Set this flag to true if the attached bodies should collide.
The damping ratio. 0 = no damping, 1 = critical damping.
The mass-spring-damper frequency in Hertz.
The natural length between the anchor points.
The local anchor point relative to body1's origin.
The local anchor point relative to body2's origin.
The joint type is set automatically for concrete joint types.
Use this to attach application specific data to your joints.
Generated using TypeDoc
Distance joint definition. This requires defining an anchor point on both bodies and the non-zero length of the distance joint. The definition uses local anchor points so that the initial configuration can violate the constraint slightly. This helps when saving and loading a game.
Do not use a zero or short length.