# CreatePulleyJoint2

## Description

Creates a pulley joint between two sprites. This the first half of a two command setup. Due to the number of parameters required you must call FinishPulleyJoint with the rest of the parameters to create the joint. This command returns nothing, the joint ID is returned by FinishPulleyJoint.

## Definition

CreatePulleyJoint2( iSpriteIndex1, iSpriteIndex2, ratio, colConnected )

void agk::CreatePulleyJoint2( UINT iSpriteIndex1, UINT iSpriteIndex2, float ratio, int colConnected )

## Parameters

- iSpriteIndex1 - The ID of the first sprite to join.
- iSpriteIndex2 - The ID of the second sprite to join.
- colConnected - Set whether the two sprites connected by the joint can collide with one another, 0=no, 1=yes.