Documentation
    Preparing search index...

    Interface CapsuleGeometryOptions

    Options of capsuleGeometry.

    interface CapsuleGeometryOptions {
        capSegments?: number;
        height?: number;
        radialSegments?: number;
        radius?: number;
    }
    Index
    capSegments?: number

    Rings per hemispherical cap; defaults to 8. A finite integer ≥ 1.

    height?: number

    Length of the cylindrical section only, so the total extent along Y is height + 2 · radius. Defaults to 1.

    That is the same measurement @fourjs/physics' capsule collider takes (§24), which is the whole point: a capsule body and the capsule drawn for it are built from the same two numbers and cannot disagree.

    radialSegments?: number

    Segments around the axis; defaults to 32. A finite integer ≥ 3.

    radius?: number

    Radius of the cylindrical middle and of both hemispherical caps; 0.5.