benilla-re systems structs docs

CMovement::GetFallSpeed

function · collision · primitive

Address
0x7c5d20 · 80 bytes, up to 0x7c5d6f
Signature
float __thiscall (CMovement *this, float t)
Meaning
Returns min(float(min(v, cap) + g·t), cap): the down-positive vertical speed t seconds into the arc
Confidence
verified, proof one
Finding
collision/falling#fall-speed-at-a-time
Test
collision::gravity_fall_difftest, collision::gravity_integrate_trajectory

Finding: Fall speed at a time in collision: falling

0x7c5d20(t) returns the vertical speed t seconds into the arc. With v = +0xa0 and T the cap: vc = T when v > T, else v (NaN keeps v); w = float(t·g + vc); it returns T when T < w, else w, NaN included. The sum is rounded to float before the compare. 0x7c5d70 calls it with t = float(+0x78 · 0.001), the count read as unsigned. Its one user is 0x7c72b0: while 0x2000 is set it stores the result at +0xa0, zeroes +0x78 and copies z to +0x7c, restarting the arc from the current height at the current speed. 0x61a4e0 runs it right after the feather-fall setter 0x7c72e0, so a changed cap takes hold from that moment.

The derivation is in the doc.

Callers 2

Callees 0

None by a direct call or jump.

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