Class representing a capsule-shaped PrimitiveMesh.
    public class CapsuleMesh : PrimitiveMesh

Class representing a capsule-shaped PrimitiveMesh.

Inheritance Chain

Constructors

    public CapsuleMesh()

Properties

    public float MidHeight { get; set; }

Height of the capsule mesh from the center point. Defaults to 1.0.

    public int RadialSegments { get; set; }

Number of radial segments on the capsule mesh. Defaults to 64.

    public float Radius { get; set; }

Radius of the capsule mesh. Defaults to 1.0.

    public int Rings { get; set; }

Number of rings along the height of the capsule. Defaults to 8.

Methods

    public float GetMidHeight()

Getter for MidHeight

    public int GetRadialSegments()

Getter for RadialSegments

    public float GetRadius()

Getter for Radius

    public int GetRings()

Getter for Rings

    public void SetMidHeight(float midHeight)

Setter for MidHeight

    public void SetRadialSegments(int segments)

Setter for RadialSegments

    public void SetRadius(float radius)

Setter for Radius

    public void SetRings(int rings)

Setter for Rings

Tags: