crashcat docs
    Preparing search index...

    Type Alias ConvexHullShapeSettings

    settings for creating a convex hull shape

    type ConvexHullShapeSettings = {
        convexRadius?: number;
        density?: number;
        hullTolerance?: number;
        materialId?: number;
        maxErrorConvexRadius?: number;
        positions: number[];
    }
    Index

    Properties

    convexRadius?: number
    0.05
    

    DEFAULT_CONVEX_RADIUS

    density?: number
    1000
    

    DEFAULT_SHAPE_DENSITY

    hullTolerance?: number

    points are allowed this far outside of the hull, increase to get a hull with less vertices, note that the actual used value can be larger if the points of the hull are far apart.

    1e-3
    
    materialId?: number

    material identifier

    -1
    
    maxErrorConvexRadius?: number

    maximum allowed error when shrinking hull by convex radius. Used to validate that vertices don't shift too far at sharp edges.

    0.05
    
    positions: number[]

    flat array of input point positions [x1, y1, z1, x2, y2, z2, ...] (can include interior points)