crashcat docs
    Preparing search index...

    Enumeration SupportKind

    Monomorphic support evaluation.

    A single Support struct (one hidden class) is filled once per collision pair, then getSupport — a single, monomorphic function — is called many times per pair by GJK/EPA. The per-shape polymorphism lives entirely in the fill (cold, once per pair); the hot path is one function with a switch on kind.

    Radius contract:

    • convexRadius is the reported radius. getSupport never adds it; the collision driver reads it and passes it to gjkClosestPoints/EPA for the shrunk-core-plus-radius distance math.
    • addRadius is an extra radius added along the (local) direction by getSupport itself (the EPA speculative-separation / cast convex radius). 0 on the GJK path.
    • "mode" (include vs exclude convex radius) is baked into the params by the fill: exclude uses the shrunk core + reports convexRadius; include uses the full/rounded core + convexRadius = 0.
    Index

    Enumeration Members

    BOX: 0
    CAPSULE: 2
    CYLINDER: 3
    HULL: 4
    POINT: 6
    SPHERE: 1
    TRIANGLE: 5