CMapObjGroup::SegmentAnyHit
function · models · primitive
- Address
0x6b95e0· 349 bytes, up to0x6b973c- Meaning
- Returns whether a segment hits any face of a group's BSP
- Confidence
- verified, proof one
- Finding
- terrain/lightattach#containment-queries
- Test
models::seg_normalize_difftest
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
- CMapObj::GroupSegmentAnyHit models
Callees 4
- SplatVector3 loadingscreen
- Vector3LengthSquared spline
- SegmentDirection models
- AaBspIntersectSegmentNode models
Calls and jumps by a bare address, from tables/calls.tsv.