Documentation
    Preparing search index...

    Interface CylinderShape

    A right circular cylinder with its axis along +Y, "3d" only (§24).

    The 3D shape a capsule is often mistaken for: flat end caps rather than hemispherical ones, so it rests on a plane on its full circular face.

    interface CylinderShape {
        halfHeight: number;
        radius: number;
        type: "cylinder";
    }
    Index
    halfHeight: number

    Half the total height along local Y. The cylinder spans [-halfHeight, +halfHeight]. Must be > 0.

    radius: number

    Radius of the circular cross-section. Must be > 0.

    type: "cylinder"