CreateDistanceJoint

Description

Creates a distance joint between two sprites. The distance joint keeps the sprites a certain distance apart whilst being allowed to rotate freely around the anchor points. Specify two anchor points in world coordinates with the sprites already at the desired distance apart. The anchor points can be offset from the sprite positions. A joint may be deleted by the system if any of the sprites it connects are deleted.

Definition

CreateDistanceJoint( iJointIndex, iSpriteIndex1, iSpriteIndex2, x, y, x2, y2, colConnected )

integer CreateDistanceJoint( iSpriteIndex1, iSpriteIndex2, x, y, x2, y2, colConnected )

Parameters