# SetObjectShapeCylinder

## Description

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

## Definition

SetObjectShapeCylinder( objID, axis )

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

SetObjectShapeCylinder( objID, axis, height, diameter )

void agk::SetObjectShapeCylinder( UINT objID, int axis, float height, float diameter )

## Parameters

- objID - object ID
- axis - 0 =X axis, 1 =Y axis, 2 = Z axis orientation
- height - height on the y
- diameter - diameter on the x and z