TraceMapObjects
function · terrain · orchestration
- Address
0x69c0f0· 547 bytes, up to0x69c312- Signature
uint8_t __fastcall (const float *start, const float *end, uint32_t mask, uint32_t arg4, float *t, uint16_t *id, void **object, void **instance)- Meaning
- Traces a segment against the map objects, then the doodads it queues from their groups, keeping the nearest fraction
- 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 2
- CWorld::GetAreaIdAt terrain
- TraceWorldSegmentBody terrain
Callees 8
- QueueDoodadsForTrace terrain
- TraceGameObjects terrain
- CMapObj::IntersectSegment models
- CMapObj::TestSegmentBounds models
- SegmentEntersBox unassigned
- M2SceneEnableRayHits models
- M2SceneRayHit models
- TransformPoint cmath
Calls and jumps by a bare address, from tables/calls.tsv.