crashcat docs
    Preparing search index...

    Type Alias ConvexHullShape

    a convex hull shape

    type ConvexHullShape = {
        aabb: Box3;
        centerOfMass: Vec3;
        convexRadius: number;
        density: number;
        faces: ConvexHullFace[];
        inertia: Mat4;
        materialId: number;
        planes: ConvexHullPlane[];
        points: ConvexHullPoint[];
        type: CONVEX_HULL;
        vertexIndices: number[];
        volume: number;
    }
    Index

    Properties

    aabb: Box3

    local bounds

    centerOfMass: Vec3

    center of mass

    convexRadius: number

    convex radius

    density: number

    shape density

    faces of the convex hull

    inertia: Mat4

    inertia tensor (column-major mat4)

    materialId: number

    material identifier

    planes: ConvexHullPlane[]

    plane equations for each face (1-to-1 with faces)

    points: ConvexHullPoint[]

    points of the convex hull

    vertexIndices: number[]

    flattened vertex indices for all faces

    volume: number

    volume