rhodonite
    Preparing search index...

    Interface CapsuleDescriptor

    The argument descriptor for Capsule primitives

    interface CapsuleDescriptor {
        height?: number;
        heightSegments?: number;
        material?: Material;
        physics?: PhysicsProperty;
        radius?: number;
        widthSegments?: number;
    }

    Hierarchy (View Summary)

    Index

    Properties

    height?: number

    The height of the capsule (distance between the centers of the two half-spheres).

    1
    
    heightSegments?: number

    The number of segments that define the capsule's height (vertical divisions for each half-sphere).

    8
    
    material?: Material

    attach a rhodonite material to this plane(the default material is the classicUberMaterial

    physics?: PhysicsProperty

    Physics properties associated with the capsule, such as mass and collision settings.

    radius?: number

    The radius of the capsule (half-spheres and cylinder).

    0.5
    
    widthSegments?: number

    The number of segments that define the capsule's width (horizontal divisions).

    16