Creates a new cylinder.
Namespace:
SGP.XSpaceAssembly: SGPRTL (in SGPRTL.dll)
Version: 1.2.3019.18825
Syntax
C# |
---|
public XMeshSprite AddCylinder( float x, float y, float z, float radius1, float radius2, float length, int stacks ) |
Parameters
- x
- Type: System..::.Single
The X coordinate of the object.
- y
- Type: System..::.Single
The Y coordinate of the object.
- z
- Type: System..::.Single
The Z coordinate of the object.
- radius1
- Type: System..::.Single
Radius of the cylinder at the end in the negative Z axis.
- radius2
- Type: System..::.Single
Radius of the cylinder at the end in the positive Z axis.
- length
- Type: System..::.Single
Cylinder height.
- stacks
- Type: System..::.Int32
Defines the edges count along the main diagonal.