FacetsMeetPlanes
function · collision · orchestration
- Address
0x6317c0· 168 bytes, up to0x631867- Signature
uint32_t __fastcall (const float *planes, uint32_t count)- Meaning
- Returns 1 when any facet of the solid list keeps a part after clipping by every plane
- Confidence
- verified, proof one
- Finding
- collision/contact#obstruction-test
Finding: Obstruction test in collision: contact
0x631670(H, r) tells whether a CMovement's volume of height H and radius r meets solid
geometry. It writes the box (−r, −r, 0) to (r, r, H) into 0xc4e5a0, moves it by the position
0x7c4930 returns, and calls 0x6721b0(box, 0xc4e52c, mask, 0) with the mask of 0x6315f0. A
zero return returns 1. Otherwise it builds the planes 0x631440(+0x10, H, r) and returns
0x6317c0(planes, 9): 1 at the first gathered facet that keeps any part after the clip by all
nine planes, else 0. On a transport the box is at the world position 0x7c4930 gives, the planes
at the stored +0x10.
The derivation is in the doc.
Callers 1
- CMovement::IsVolumeObstructed collision
Callees 1
- ClipPolygonByPlanes collision
Calls and jumps by a bare address, from tables/calls.tsv.