reckfellENGINE

CsgCylinder3D

A CSG Cylinder shape.

On this page
class CsgCylinder3DReckfellSharpInherits CsgPrimitive3D

A CSG Cylinder shape.

This node allows you to create a cylinder (or cone) for use with the CSG system. Note: CSG nodes are intended to be used for level prototyping. Creating CSG nodes has a significant CPU cost compared to creating a MeshInstance3D with a PrimitiveMesh. Moving a CSG node within another CSG node also has a significant CPU cost, so it should be avoided during gameplay.

Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.

Constructors1

CsgCylinder3DConstructor
# CsgCylinder3D
C#
public CsgCylinder3D();

Properties6

ConeProperty
# Cone
C#
public bool Cone { get; set; }

If true a cone is created, the CsgCylinder3D.Radius will only apply to one side.

HeightProperty
# Height
C#
public float Height { get; set; }

The height of the cylinder.

MaterialProperty
# Material
C#
public Material Material { get; set; }

The material used to render the cylinder.

RadiusProperty
# Radius
C#
public float Radius { get; set; }

The radius of the cylinder.

SidesProperty
# Sides
C#
public int Sides { get; set; }

The number of sides of the cylinder, the higher this number the more detail there will be in the cylinder.

SmoothFacesProperty
# SmoothFaces
C#
public bool SmoothFaces { get; set; }

If true the normals of the cylinder are set to give a smooth effect making the cylinder seem rounded. If false the cylinder will have a flat shaded look.

Methods12

GetHeightfloat
# GetHeight
C#
public float GetHeight();
Returns float
GetMaterialMaterial
# GetMaterial
C#
public Material GetMaterial();
Returns Material
GetRadiusfloat
# GetRadius
C#
public float GetRadius();
Returns float
GetSidesint
# GetSides
C#
public int GetSides();
Returns int
GetSmoothFacesbool
# GetSmoothFaces
C#
public bool GetSmoothFaces();
Returns bool
IsConebool
# IsCone
C#
public bool IsCone();
Returns bool
SetConevoid
# SetCone
C#
public void SetCone(bool cone);
Parameters
NameTypeDefault
conebool—
SetHeightvoid
# SetHeight
C#
public void SetHeight(float height);
Parameters
NameTypeDefault
heightfloat—
SetMaterialvoid
# SetMaterial
C#
public void SetMaterial(Material material);
Parameters
NameTypeDefault
materialMaterial—
SetRadiusvoid
# SetRadius
C#
public void SetRadius(float radius);
Parameters
NameTypeDefault
radiusfloat—
SetSidesvoid
# SetSides
C#
public void SetSides(int sides);
Parameters
NameTypeDefault
sidesint—
SetSmoothFacesvoid
# SetSmoothFaces
C#
public void SetSmoothFaces(bool smoothFaces);
Parameters
NameTypeDefault
smoothFacesbool—
Reckfell Engine documentationBack to top ↑
QUICK LINKSGetting startedEntity hierarchyC# & .NET 10Scenes and prefabs
Reckfell guides and full API K
reckfellENGINE
RECKFELL ACCOUNT

Sign in

Sign in to your Reckfell account.

One account for the entire Reckfell platform.