@pmndrs/bvh
    Preparing search index...

    Variable WALK_COUNTS_WORDConst

    WALK_COUNTS_WORD: {
        instance: 1;
        instanceEntries: 6;
        instancesWithHit: 8;
        meshNodes: 4;
        steps: 3;
        t: 0;
        topLevelNodes: 5;
        triangle: 2;
        triangleTests: 7;
    } = ...

    Where each word of a BvhWalkCounts record sits (WALK_COUNTS_BYTES per ray).

    Type Declaration

    • Readonlyinstance: 1

      Closest: the hit's instance (a merged mesh's triangles report their source instance).

    • ReadonlyinstanceEntries: 6

      Instances entered (top-level leaves whose mask passed; a merged mesh counts once).

    • ReadonlyinstancesWithHit: 8

      Instances entered in which the walk accepted a hit (closest) or found the blocker (any).

    • ReadonlymeshNodes: 4

      Inner nodes of mesh trees whose two child boxes were tested.

    • Readonlysteps: 3

      Iterations of the walk's loop: one per node or leaf processed, both levels.

    • Readonlyt: 0

      Closest: the hit's t (f32), negative for a miss. Any: 1.0 blocked, -1.0 clear.

    • ReadonlytopLevelNodes: 5

      Inner nodes of the top level whose two child boxes were tested.

    • Readonlytriangle: 2

      Closest: the hit's triangle within its source mesh.

    • ReadonlytriangleTests: 7

      Ray-triangle tests.