CMovement::IsRising
function · collision · primitive
- Address
0x7c5de0· 88 bytes, up to0x7c5e37- Signature
uint32_t __thiscall (CMovement *this)- Meaning
- Returns 1 while falling with a nonzero launch speed whose apex time lies after the elapsed arc time
- Confidence
- verified, proof one
- Finding
- collision/falling#apex-time-and-rising-test
- Test
collision::gravity_fall_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 1
- CGUnit_C::UpdateSwimState objectlayer
Callees 1
- CMovement::GetApexTime collision
Calls and jumps by a bare address, from tables/calls.tsv.