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