benilla-re systems structs docs

CMovement::ResolveAirborneMove

function · collision · primitive

Address
0x635600 · 1272 bytes, up to 0x635af7
Signature
uint32_t __thiscall (CMovement *this, uint32_t time, uint32_t ms, float moveX, float moveY, float moveZ, int report)
Meaning
Resolves a displacement holding a fall against the world in steps and returns the milliseconds used
Confidence
verified, proof one
Finding
collision/airborne#airborne-resolver-loop
Test
collision::fall_integrator_difftest, collision::fall_integrator_freefly_damage_difftest

Finding: Airborne resolver loop in collision: airborne

0x635600(time, ms, D, report) resolves D over ms. At entry: T = float(ms·0.001) seconds, t0 = float(+0x78·0.001), U = 0, L = float(|D|), and the fixed h = float(|D.xy|) and |D.z|; it saves +0x84, +0x68, +0x6c and +0x5c. Each step:

stepaction
1L < 2^-20 ends the call with T
2u = float(D_i·(1/L)); a = L; t = float(t0 + U)
30x6351a0(t, &D, &a, &push, &guid, &land, &head) returns 0, 1 or 2; 2 ends the call
4on 1, τ = 0x635450(T − U, t, &D, &a, head, h_s); on 0, τ = T − U
5+0x10 += D, per component; U = float(U + τ)
6head ends through 0x633220, land through 0x7c6290; U + 0.0005 ≥ T ends with T
7L −= a, the stall rules run, and the next step starts

The derivation is in the doc.

Callers 2

Callees 13

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