benilla-re systems structs docs

CMovement::IsVolumeObstructed

function · collision · primitive

Address
0x631670 · 331 bytes, up to 0x6317ba
Signature
uint32_t __thiscall (CMovement *this, float height, float radius)
Meaning
Returns 1 when a solid facet meets the volume at the position, or when the world query fails
Confidence
verified, proof one
Finding
collision/contact#obstruction-test
Test
collision::query_aabb_difftest

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

Callees 5

Calls and jumps by a bare address, from tables/calls.tsv.