benilla-re systems structs docs

s_doodadTraceMatrix

global · terrain

Address
0xc7cd30 · 64 bytes, up to 0xc7cd6f
Type
NTempest::C44Matrix
Meaning
Holds the matrix a segment moves by before the doodad trace: identity at start-up, then copied by 0x671b30
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.