CreatePulleyJoint

Description

Creates a pulley joint between two sprites. The anchor points are world space coordinates that attach the joint to the sprite, the anchor points do not have to be on the sprite's center, or anywhere near the sprite, but this point will become the new center of rotation for the time the sprite is attached to the pulley. The ground points are where the pulley rope will attach to the imaginary pulleys, and will remain fixed for the life of the joint, they need not be in the same location. The ratio value determines the gear ratio between the two sides of the pulley, for example a value of 2 would mean that sprite 1 moves at twice the speed of sprite 2, but will experience half the force applied to sprite 2.

Definition

CreatePulleyJoint( iJointIndex, iSpriteIndex1, iSpriteIndex2, gnd1x, gnd1y, gnd2x, gnd2y, a1x, a1y, a2x, a2y, ratio, colConnected )

Parameters