benilla-re systems structs docs

CMapObj::TestSegmentBounds

function · models · orchestration

Address
0x6a47b0 · 47 bytes, up to 0x6a47de
Signature
uint8_t __thiscall (CMapObj *this, const float *start, const float *end)
Meaning
Returns 0 for an unloaded map object, else whether 0x6dc5a0 passes a segment through its bounding box
Confidence
verified, proof one
Finding
terrain/trace#map-object-trace

Finding: Map object trace in terrain: trace

0x69c0f0(start, end, mask, arg4, t, id, object, instance) traces a segment against the map objects and their groups' doodads. For each instance of the map object list, but one with bit 0 of byte +0xd or no map object +0x118, whose box +0x44 the segment crosses, it moves the segment into the instance's space by +0xd4; when the loaded map object's box takes it, it calls CMapObj::IntersectSegment(instance, start', end', mask, arg4, t, id, 0), a non-zero result a hit stored through object and instance. Each def group whose box +0x44 the segment crosses has its doodads queued (0x69cdb0, +0xa8) under any of 0xf0000f and its game objects passed to 0x69ce90 (+0xb4) under 0xf00000.

The derivation is in the doc.

Callers 3

Callees 1

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