reckfellENGINE

CapsuleMesh

Class representing a capsule-shaped PrimitiveMesh.

On this page
class CapsuleMeshReckfellSharpInherits PrimitiveMesh

Class representing a capsule-shaped PrimitiveMesh.

Class representing a capsule-shaped PrimitiveMesh.

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

Constructors1

CapsuleMeshConstructor
# CapsuleMesh
C#
public CapsuleMesh();

Properties4

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

Total height of the capsule mesh (including the hemispherical ends). Note: The CapsuleMesh.Height of a capsule must be at least twice its CapsuleMesh.Radius. Otherwise, the capsule becomes a circle. If the CapsuleMesh.Height is less than twice the CapsuleMesh.Radius, the properties adjust to a valid value.

RadialSegmentsProperty
# RadialSegments
C#
public int RadialSegments { get; set; }

Number of radial segments on the capsule mesh.

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

Radius of the capsule mesh. Note: The CapsuleMesh.Radius of a capsule cannot be greater than half of its CapsuleMesh.Height. Otherwise, the capsule becomes a circle. If the CapsuleMesh.Radius is greater than half of the CapsuleMesh.Height, the properties adjust to a valid value.

RingsProperty
# Rings
C#
public int Rings { get; set; }

Number of rings along the height of the capsule.

Methods8

GetHeightfloat
# GetHeight
C#
public float GetHeight();
Returns float
GetRadialSegmentsint
# GetRadialSegments
C#
public int GetRadialSegments();
Returns int
GetRadiusfloat
# GetRadius
C#
public float GetRadius();
Returns float
GetRingsint
# GetRings
C#
public int GetRings();
Returns int
SetHeightvoid
# SetHeight
C#
public void SetHeight(float height);
Parameters
NameTypeDefault
heightfloat—
SetRadialSegmentsvoid
# SetRadialSegments
C#
public void SetRadialSegments(int segments);
Parameters
NameTypeDefault
segmentsint—
SetRadiusvoid
# SetRadius
C#
public void SetRadius(float radius);
Parameters
NameTypeDefault
radiusfloat—
SetRingsvoid
# SetRings
C#
public void SetRings(int rings);
Parameters
NameTypeDefault
ringsint—
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.