CapsuleMesh
Class representing a capsule-shaped 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
public CapsuleMesh();Properties4
HeightProperty
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
public int RadialSegments { get; set; }Number of radial segments on the capsule mesh.
RadiusProperty
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
public int Rings { get; set; }Number of rings along the height of the capsule.
Methods8
GetHeightfloat
public float GetHeight();floatGetRadialSegmentsint
public int GetRadialSegments();intGetRadiusfloat
public float GetRadius();floatGetRingsint
public int GetRings();intSetHeightvoid
public void SetHeight(float height);| Name | Type | Default |
|---|---|---|
height | float | — |
SetRadialSegmentsvoid
public void SetRadialSegments(int segments);| Name | Type | Default |
|---|---|---|
segments | int | — |
SetRadiusvoid
public void SetRadius(float radius);| Name | Type | Default |
|---|---|---|
radius | float | — |
SetRingsvoid
public void SetRings(int rings);| Name | Type | Default |
|---|---|---|
rings | int | — |