benilla-re systems structs docs

CMovement::QuerySweptBox

function · collision · primitive

Address
0x633840 · 2017 bytes, up to 0x634020
Signature
int __thiscall (CMovement *this, float dist, uint32_t ms, float dirX, float dirY, float dirZ)
Meaning
Gathers the world triangles inside the unit's box grown along a move into 0xc4e52c; returns 0 on failure
Confidence
verified, proof one
Finding
collision/resolve#swept-query-frame
Test
collision::query_difftest, collision::query_clear_difftest

Finding: Swept query frame in collision: resolve

0x633840(dist, ms, u) starts from p = +0x10. On a transport (GUID +0x38 nonzero) it maps p to world space through the transport's matrix from 0x630ac0 with 0x7bcc60, and u through the matrix's rotation rows, each component rounded. 0x6337d0 then tests p's components with __finite, and the result is discarded. The base box, kept in 0xc4e5a0 as min then max, is [p.x − r, p.y − r, p.z] to [p.x + r, p.y + r, p.z + h], r = +0xb0, h = +0xb4. The move is m = float(u_i·dist) per component.

The derivation is in the doc.

Callers 1

Callees 15

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