benilla-re systems structs docs

QueryWorldTriangles

function · terrain · orchestration

Address
0x6721b0 · 411 bytes, up to 0x67234a
Signature
uint8_t __fastcall (const float *box, void *list, uint32_t mask, void *owner)
Meaning
Empties a facet list and gathers the world facets in a box, only walkable ones under mask bit 0x4000
Confidence
verified, proof one
Finding
terrain/collide#world-triangle-query

Finding: World triangle query in terrain: collide

QueryWorldTriangles (0x6721b0) empties the list and gathers the facets in the box through 0x6aa8b0. With mask bit 0x4000 it gathers into a private list instead and keeps only facets whose normal's z is at least 0.64278764, cos 50°, copying each with its owner id. It returns the gather's result, 1 for a completed query.

The derivation is in the doc.

Callers 7

Callees 7

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