benilla-re systems structs docs

CMovement::GetFallHeight

function · collision · primitive

Address
0x7c60c0 · 67 bytes, up to 0x7c6102
Signature
float __thiscall (CMovement *this)
Meaning
Returns +0x7c - z, plus v²/(2g) for a rising launch, at least 0: the height fallen from the apex
Confidence
verified, proof one
Finding
collision/falling#fall-height-from-the-apex
Test
collision::gravity_fall_difftest

Finding: Fall height from the apex in collision: falling

0x7c60c0 returns h = +0x7c − z, plus v·v·(1/(2g)) when v = +0xa0 is below −2⁻²², and 0.0 in place of a negative h; NaN is returned as it is. For a rising launch the added term is the climb to the apex, so h is the height from the arc's highest point down to z; for a level or falling launch it is the drop from the start. After a land jump the term is 1.64041 yd. The landing handler 0x602d00 is its one caller and stores h as a float.

The derivation is in the doc.

Callers 1

Callees 0

None by a direct call or jump.

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