CreateRopeJoint

Description

Creates a rope joint between two sprites. The rope joint enforces a maximum distance between the sprites without any other restrictions. It does not stop them getting closer together. Specify two anchor points in world coordinates with the maximum length you want to allow, the current position of the sprites does not affect the initialisation of the joint. 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

integer CreateRopeJoint( iSpriteIndex1, iSpriteIndex2, x, y, x2, y2, maxLength, colConnected )

CreateRopeJoint( iJointIndex, iSpriteIndex1, iSpriteIndex2, x, y, x2, y2, maxLength, colConnected )

Parameters