QueryWorldTriangles
function · terrain · orchestration
- Address
0x6721b0· 411 bytes, up to0x67234a- 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
- CGCorpse_C::GetGroundNormal objectlayer
- CGUnit_C::WalkToAttack objectlayer
- CMovement::IsVolumeObstructed collision
- CMovement::GatherSweepFacets collision
- CMovement::QuerySweptBox collision
- CMovement::SweepCarrierMove collision
- AddFootprint terrain
Callees 7
- _atexit crt
- 0x513320 uicamera
- PushOwnerId terrain
- FreeFacetArray terrain
- DestroyFacet terrain
- GrowFacetArray terrain
- GatherWorldFacets terrain
Calls and jumps by a bare address, from tables/calls.tsv.