TraceMapObjectsNearest
function · terrain · orchestration
- Address
0x6a8840· 476 bytes, up to0x6a8a1b- Signature
uint8_t __fastcall (const float *start, const float *end, float *t, void *out, uint32_t arg5, uint32_t arg6)- Meaning
- Traces a segment against the loaded map objects and returns the nearest face, object, group node and word
- Confidence
- inferred
- Finding
- terrain/mapentities#map-object-trace
Finding: Map object trace in terrain: map entities
0x6a8840 finds the nearest map object face a segment crosses. For each loaded map object whose
box takes the segment it moves the segment into the object's space, and for each group of the
object whose box takes it traces the group's faces (0x6b92b0, mode 4); a hit with a smaller
fraction becomes the answer: the fraction, the map object, the group node and the first batch
word. It returns whether an object was found.
The derivation is in the doc.
Callers 1
- AttachEntityToGround terrain
Callees 5
- CMapObj::QueryGroupLiquid models
- CMapObj::GetLoadedGroup models
- CMapObjGroup::IntersectSegment models
- TraceModelList terrain
- TransformPoint cmath
Calls and jumps by a bare address, from tables/calls.tsv.