CreateRevoluteJoint

Description

Creates a revolute joint between two sprites. The revolute joint allows the sprites to only rotate around the given point. Specify a single anchor point in world coordinates with the sprites already at the desired relative position. The anchor point can be offset from the sprite center positions.

A joint ID will be returned to reference this joint later, a joint may be deleted by the system if any of the sprites it connects are deleted.

This joint supports motors and limits.

Definition

integer CreateRevoluteJoint( iSpriteIndex1, iSpriteIndex2, x, y, colConnected )

CreateRevoluteJoint( iJointIndex, iSpriteIndex1, iSpriteIndex2, x, y, colConnected )

Parameters