crashcat docs
    Preparing search index...

    Type Alias CapsuleShape

    a capsule shape

    type CapsuleShape = {
        aabb: Box3;
        centerOfMass: Vec3;
        density: number;
        halfHeightOfCylinder: number;
        materialId: number;
        radius: number;
        type: CAPSULE;
        volume: number;
    }
    Index

    Properties

    aabb: Box3

    local bounds

    centerOfMass: Vec3

    center of mass

    density: number

    the shape density

    halfHeightOfCylinder: number

    half height of the central cylinder (excluding hemisphere caps)

    materialId: number

    material identifier

    radius: number

    radius of the capsule (the convex radius)

    type: CAPSULE

    capsule shape type

    volume: number

    volume