CMovement::GetApexTime
function · collision · primitive
- Address
0x7c5da0· 28 bytes, up to0x7c5dbb- Signature
float __thiscall (CMovement *this)- Meaning
- Returns v·(-1/g), the arc time at which the vertical speed is zero, while falling; otherwise 0.0
- Confidence
- verified, proof one
- Finding
- collision/falling#apex-time-and-rising-test
- Test
collision::gravity_fall_difftest,collision::fall_physics_difftest
Finding: Apex time and rising test in collision: falling
0x7c5da0 returns v·(−1/g) for v = +0xa0 while flag 0x2000 is set, else 0.0: the arc time at
which the vertical speed is zero. 0x7c5de0 returns 1 when 0x2000 is set, v ≠ 0 (NaN counts as
nonzero) and that time is strictly greater than t = float(+0x78 · 0.001); otherwise 0. So it
holds 1 from the launch of an upward arc to its apex: 0.41239 s after a land jump and 0.47155 s
after a swim jump. Its one caller outside collision is the swim decision 0x6030c0, which skips
the swim start while it returns 1 (0x603132).
The derivation is in the doc.
Callers 3
- CMovement::SweepAirborneStep collision
- CMovement::IsRisingThroughStep collision
- CMovement::IsRising collision
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.