# CreateObjectSphere

## Description

Creates a 3D sphere with the given diameter, and an optional number of polygons. The rows parameter determines how many rows of polygons make up the sphere and must be at least 2. The columns parameter determines how many columns of polygons make up the sphere and must be at least 3. The formula for calculating the total number of polygons used in the sphere is 2*columns*(rows-1)

## Definition

CreateObjectSphere( objID, diameter, rows, columns )

void agk::CreateObjectSphere( UINT objID, float diameter, int rows, int columns )

integer CreateObjectSphere( diameter, rows, columns )

UINT agk::CreateObjectSphere( float diameter, int rows, int columns )

## Parameters

- objID - The ID to use for the new object.
- diameter - The diameter of the sphere.
- rows - The number of rows of polygons that make up the sphere.
- columns - The number of columns of polygons that make up the sphere.