# CreateObjectCapsule

## Description

Creates a Capsule primative.

## Definition

integer CreateObjectCapsule( diameter, height, axis )

UINT agk::CreateObjectCapsule( float diameter, float height, int axis )

CreateObjectCapsule( objID, diameter, height, axis )

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

## Parameters

- diameter - The diameter of the capsule.
- height - The height of the capsule
- axis - 0 = X, 1 = Y, Z = 2
- objID - The ID to use for the new object.