Pulley joint definition. This requires two ground anchors, two dynamic body anchor points, max lengths for each side, and a pulley ratio.
Constructor.
The first attached body.
The second attached body.
Set this flag to true if the attached bodies should collide.
The first ground anchor in world coordinates. This point never moves.
The second ground anchor in world coordinates. This point never moves.
The a reference length for the segment attached to bodyA.
The a reference length for the segment attached to bodyB.
The local anchor point relative to body1's origin.
The local anchor point relative to body2's origin.
The maximum length of the segment attached to bodyA.
The maximum length of the segment attached to bodyB.
The pulley ratio, used to simulate a block-and-tackle.
The joint type is set automatically for concrete joint types.
Use this to attach application specific data to your joints.
Initialize the bodies, anchors, and length using the world anchors.