benilla-re systems structs docs

CMovement::IsRisingThroughStep

function · collision · primitive

Address
0x635550 · 174 bytes, up to 0x6355fd
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:

caseresult
tf ≤ tD = 0, a = 0, return 0
d > Rreturn R
d < kD.x, D.y scaled by d/k, a = float(|D|), return d
otherwise, NaN includedreturn 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

Callees 1

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