# SetObjectShapeCapsule

## Description

Sets the collision shape to a capsule based on the size passed in. You must first create a physics body for the object or this command will fail.

## Definition

SetObjectShapeCapsule( objID, axis, sizeX, sizeY, sizeZ )

void agk::SetObjectShapeCapsule( UINT objID, int axis, float sizeX, float sizeY, float sizeZ )

SetObjectShapeCapsule( objID, axis )

void agk::SetObjectShapeCapsule( UINT objID, int axis )

SetObjectShapeCapsule( objID, axis, vectorID )

void agk::SetObjectShapeCapsule( UINT objID, int axis, UINT vectorID )

## Parameters

- objID - object ID
- axis - 0 =X axis, 1 =Y axis, 2 = Z axis orientation
- sizeX - dimension on the x axis
- sizeY - dimension on the Y axis
- sizeZ - dimension on the Z axis
- vectorID - ID of the dimension vector.