crashcat docs
    Preparing search index...

    Type Alias BodyVisitor

    type for a broadphase body visitor

    type BodyVisitor = {
        earlyOutFraction?: number;
        shouldExit: boolean;
        visit(body: RigidBody): void;
    }
    Index

    Properties

    earlyOutFraction?: number

    closest-hit fraction found so far, in [0, 1] of the ray length. castRay prunes any node whose fat-AABB entry fraction is >= this. Optional — visitors that don't cast (intersectAABB etc.) omit it, and castRay then falls back to no distance pruning.

    shouldExit: boolean

    whether the broadphase traversal should exit early

    Methods