benilla-re systems structs docs

AaBspQueryLeafBox

function · models · primitive

Address
0x6bca50 · 164 bytes, up to 0x6bcaf3
Signature
void __thiscall (void *this, uint16_t face)
Meaning
Marks a face visited and keeps it unless the mask rejects it or its points all lie beyond one box face
Confidence
verified, proof one
Finding
models/collisionquery#group-box-gather
Test
models::aabsp_query_leaf_box_difftest

Finding: Group box gather in models: WMO movement query

0x6b91c0(list, box, arg, class, mask) gathers a group's faces in a box. It builds a leaf context with the reject mask mask | 0x80, descends the tree at +0x44 within its box +0x90, commits the kept faces with list and arg, adds the liquid tiles for a class with any of 0xf0000, pops every visited face, clearing its bit 0x80, and returns whether the batch count 0xc5a474 moved. The leaf 0x6bca50(face) skips a face whose flag byte shares a bit with the mask; else, unless the visited stack is full, it pushes the face, sets its bit 0x80 and keeps it unless all three points lie beyond one box face (0x6b8b70): a triangle whose bounds overlap the box is kept.

The derivation is in the doc.

Callers 1

Callees 1

Calls and jumps by a bare address, from tables/calls.tsv.