benilla-re systems structs docs

TraceMapObjectsNearest

function · terrain · orchestration

Address
0x6a8840 · 476 bytes, up to 0x6a8a1b
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

Callees 5

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