benilla-re systems structs docs

s_bspNodeCache

global · models

Address
0xca03e4 · 4 bytes, up to 0xca03e7
Type
void *
Meaning
Holds the BSP node cache, null unless the console enables it
Confidence
inferred
Finding
models/collisionquery#box-descent-and-face-test

Finding: Box descent and face test in models: WMO movement query

The box descent tests a face only by its triangle's bounding box. 0x6b91c0 descends the group's tree with 0x6bc1c0, whose leaf 0x6bca50 skips each face by the mask and the visited bit and calls 0x6b8b70 on the face's three vertices and the whole query box. That kernel reports separated when, on any coordinate axis, all three vertices lie beyond the box on one side, by the sign bit of the difference, so a touching triangle is kept. It has no plane, edge, winding or epsilon test. A kept index is stored, 0x6b8e50 packs the survivors and 0x671cc0 emits one 52-byte facet per face (normal from the cross product, d = −n·v0, three world vertices) with no orientation test.

The derivation is in the doc.