benilla-re systems structs docs

CGUnit_C::OnLand

function · objectlayer · primitive

Address
0x602d00 · 299 bytes, up to 0x602e2a
Meaning
Handles a landing: reads the fall height from 0x7c60c0 and tests it against thresholds
Confidence
inferred
Finding
collision/falling#fall-height-from-the-apex

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 3

Callees 6

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