SegmentEntersBox
function · unassigned · primitive
- Address
0x6dc5a0· 498 bytes, up to0x6dc791- Signature
uint32_t __fastcall (const float *box, const float *start, const float *end)- Meaning
- Returns 1 when a segment starts in a box or enters it, its entry point held to the faces within 1e-5
- Confidence
- verified, proof one
- Finding
- terrain/trace#map-object-trace
- Test
lighting::ray_box_clip_difftest
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 7
- TraceMapObjects terrain
- CMapObj::IntersectSegment models
- CMapObj::QueryGroups models
- CMapObj::TestSegmentBounds models
- CMapObj::QueryGroupLiquid models
- TraceModelList terrain
- 0x6dcd80 unassigned
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.