CMapObjGroup::CollectBoxFacets
function · models · primitive
- Address
0x6b91c0· 238 bytes, up to0x6b92ad- Signature
uint8_t __thiscall (CMapObjGroup *this, void *list, const float *box, void *arg, uint32_t classWord, uint32_t mask)- Meaning
- Gathers a group's faces in a box through its BSP, then its liquid tiles, and clears the visited bits
- Confidence
- verified, proof one
- Finding
- models/collisionquery#group-box-gather
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 3
- CMapObjGroup::CommitFacets models
- CMapObjGroup::CollectBoxLiquid models
- AaBspQueryBoxNode models
Calls and jumps by a bare address, from tables/calls.tsv.