CMapObj::GroupSegmentAnyHit
function · models · orchestration
- Address
0x6a3f10· 97 bytes, up to0x6a3f70- Meaning
- Returns whether a segment hits a face of a group that the mask 0x86 lets through, lowering the fraction
- Confidence
- verified, proof one
- Finding
- terrain/lightattach#containment-queries
Finding: Containment queries in terrain: light node attach
The three tests of the containment attach use different face sets. A face is tested when its flag byte
shares no bit with the mask. The box query (0x6a3ee0) and the segment query (0x6a3f10) pass the literal 0x86,
which skips faces flagged 2 and 4; the box query is an any-hit test of each face's own box against the node's, the
segment query a nearest-hit ray that writes the shared fraction. The face ray 0x6a3a40, which every caller
passes the class word 0x20, derives the mask 0x88 from it, so it skips faces flagged 8 and tests those flagged
2 and 4. A group can pass the box or segment test on a face the ray then skips.
The derivation is in the doc.
Callers 1
- LinkEntityToMapObject terrain
Callees 2
- CMapObj::GetLoadedGroup models
- CMapObjGroup::SegmentAnyHit models
Calls and jumps by a bare address, from tables/calls.tsv.