CreateObjectCylinder
Description
Creates a 3D cylinder with the given diameter and height, and an optional number of polygons. The segments parameter determines how many columns of polygons make up the cylinder and must be at least 3. The formula for calculating the total number of polygons used in the cylinder is 3*segments.
Definition
CreateObjectCylinder( objID, height, diameter, segments )
void agk::CreateObjectCylinder( uint32_t objID, float height, float diameter, int segments )
integer CreateObjectCylinder( height, diameter, segments )
uint32_t agk::CreateObjectCylinder( float height, float diameter, int segments )
Parameters
- objID - The ID to use for the new object.
- height - The height of the cylinder.
- diameter - The diameter of the base of the cylinder.
- segments - The number of columns of polygons that make up the cylinder.