crashcat docs
    Preparing search index...

    Type Alias ConvexShapeDef<S>

    What the convex narrowphase needs from a shape: the handoff that turns it into a Support.

    This is the only place a Shape crosses into the support world — gjk and epa work in terms of the evaluators in support.ts (SupportFunction), which is a different and smaller taxonomy than ShapeType (a triangle and a polygon have supports but no shape; hull, polygon and point all share one evaluator). A shape's fill installs one of those existing evaluators; it does not introduce new ones.

    Present iff the shape is convex — this is the marker, there is no separate flag.

    type ConvexShapeDef<S extends ShapeBase> = {
        setSupport: (
            out: Support,
            shape: S,
            mode: SupportFunctionMode,
            scale: Vec3,
        ) => void;
    }

    Type Parameters

    Index

    Properties

    Properties

    setSupport: (
        out: Support,
        shape: S,
        mode: SupportFunctionMode,
        scale: Vec3,
    ) => void

    fill a Support for this shape (+ mode + scale)