CMovement::IsRisingThroughStep
function · collision · primitive
- Address
0x635550· 174 bytes, up to0x6355fd- Signature
int __thiscall (CMovement *this, float time, float remaining, const float *move, int headHit)- Meaning
- Returns 1 when the head flag is set or the unit is still rising through this step
- Confidence
- verified, proof one
- Finding
- collision/airborne#step-time-from-the-fall
- Test
collision::fall_feasible_difftest
Finding: Step time from the fall in collision: airborne
0x635450(R, t, &D, &a, head, h) returns the step time in seconds, at 53 bits. k =
float(|D.xy|/h·R) for h > 2^-20, else 0. tf = 0x7c5f50(float((+0x7c − +0x18) − D.z),
rising), the arc time at which the fall reaches the step's end height, with rising =
0x635550(t, R, D, head). Then, with d = tf − t:
| case | result |
|---|---|
| tf ≤ t | D = 0, a = 0, return 0 |
| d > R | return R |
| d < k | D.x, D.y scaled by d/k, a = float(|D|), return d |
| otherwise, NaN included | return d |
0x635550 returns 1 when head is set, or when +0xa0 < 0 (or NaN) and, with Ta =
float(0x7c5da0()), either t + R < Ta, or t ≤ Ta and ((Ta − t)·+0x84)² > D.y² + D.x².
The derivation is in the doc.
Callers 1
- CMovement::LimitStepByFall collision
Callees 1
- CMovement::GetApexTime collision
Calls and jumps by a bare address, from tables/calls.tsv.