CMovement::ResolveFall
function · collision · primitive
- Address
0x635b00· 253 bytes, up to0x635bfc- Signature
uint32_t __thiscall (CMovement *this, uint32_t time, uint32_t ms, float dist, const float *dir)- Meaning
- Moves a falling mover along its fall curve for ms, freely or through 0x635600, and returns the ms consumed
- Confidence
- verified, proof one
- Finding
- collision/walking#fall-step
- Test
collision::fall_mode_difftest
Finding: Fall step in collision: walking
0x635b00 advances a falling mover by ms. On a transport (+0x38 nonzero) it calls
0x633200, and returns 0 when that detaches the mover; with ms 0 it returns 0. Otherwise
F = 0x7c6140(+0x78 + ms), how far the fall curve at the new fall time lies below the current
z, and the step is (float(dist·dir.x), float(dist·dir.y), float(−F)). When the step is shorter
than 2^-22 only +0x78 grows by ms, and ms is returned. Otherwise, with no candidate face (0xc4e530 zero) the
step is added to +0x10, +0x78 grows and 0x633240 runs, returning ms; with faces,
0x635600(time, ms, step, 1) moves the mover and its result is returned. Both paths then set
+0x24 to (0, 0, 1).
The derivation is in the doc.
Callers 1
- CMovement::ResolveDisplacement collision
Callees 4
- CMovement::TryClearTransport collision
- CMovement::LatchFallingFar collision
- CMovement::ResolveAirborneMove collision
- CMovement::GetFallDrop collision
Calls and jumps by a bare address, from tables/calls.tsv.