benilla-re systems structs docs

CMovement::RefreshGroundNormal

function · collision · primitive

Address
0x6332a0 · 300 bytes, up to 0x6333cb
Signature
void __thiscall (CMovement *this)
Meaning
Stores in +0x24 the normal 0x637140 averages from the listed triangles touching the unit's box
Confidence
verified, proof one
Finding
collision/resolve#ground-normal-refresh
Test
collision::capsule_kdop_dists_difftest

Finding: Ground normal refresh in collision: resolve

0x6332a0 describes the unit's box at its committed position as six planes, with outward normals and d = −(n·point): x ∈ [x − r, x + r], y ∈ [y − r, y + r], z ∈ [z, z + h], r = +0xb0, h = +0xb4. It passes them, count 6, to 0x637140 and stores the returned vector in +0x24. 0x637140 (walking) averages the normals of the triangles in 0xc4e52c whose z exceeds 0.017452406 (0x3c8ef859) and which 0x631870 accepts against the planes, and normalizes the sum; with none it returns (0, 0, 1). The list is the one the last query left.

The derivation is in the doc.

Callers 1

Callees 2

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