MeshesCreateCylinder Method  | 
 Creates a cylinder.
 
    Namespace: 
   KSPDev.ModelUtils
    Assembly:
   KSPDev_Utils.1.1 (in KSPDev_Utils.1.1.dll) Version: 1.1 for KSP v1.6+
Syntaxpublic static GameObject CreateCylinder(
	float diameter,
	float length,
	Material material,
	Transform parent,
	CollidersPrimitiveCollider colliderType = CollidersPrimitiveCollider.None
)
 Request Example
		View SourceParameters
- diameter
 - Type: SystemSingle
XY of the cylinder. - length
 - Type: SystemSingle
Z-axis of the cylinder. - material
 - Type: UnityEngineMaterial
Material for the primitive. - parent
 - Type: UnityEngineTransform
Parent transfrom to atatch primitive to. - colliderType (Optional)
 - Type: KSPDev.ModelUtilsCollidersPrimitiveCollider
Type of the collider to create on the primitive. 
Return Value
Type: 
GameObjectSphere game object.
See Also