Method CreateCapsule
CreateCapsule(double, double, int, int, bool)
Create a new capsule
Declaration
[HandleProcessCorruptedStateExceptions]
public uint CreateCapsule(double radius, double height, int subdivisionLatitude = 16, int subdivisionLongitude = 16, bool generateUV = true)
Parameters
Type | Name | Description |
---|---|---|
double | radius | Radius of the Capsule |
double | height | Height of the Capsule (excluding the two size of half spheres) |
int | subdivisionLatitude | Subdivision of the Capsule on the Latitude |
int | subdivisionLongitude | Subdivision of the Capsule (two half spheres) on the Longitude |
bool | generateUV | Generation of the UV |
Returns
Type | Description |
---|---|
uint |