CMovement::ResolveAirborneMove
function · collision · primitive
- Address
0x635600· 1272 bytes, up to0x635af7- Signature
uint32_t __thiscall (CMovement *this, uint32_t time, uint32_t ms, float moveX, float moveY, float moveZ, int report)- Meaning
- Resolves a displacement holding a fall against the world in steps and returns the milliseconds used
- Confidence
- verified, proof one
- Finding
- collision/airborne#airborne-resolver-loop
- Test
collision::fall_integrator_difftest,collision::fall_integrator_freefly_damage_difftest
Finding: Airborne resolver loop in collision: airborne
0x635600(time, ms, D, report) resolves D over ms. At entry: T = float(ms·0.001) seconds, t0 =
float(+0x78·0.001), U = 0, L = float(|D|), and the fixed h = float(|D.xy|) and |D.z|; it saves
+0x84, +0x68, +0x6c and +0x5c. Each step:
| step | action |
|---|---|
| 1 | L < 2^-20 ends the call with T |
| 2 | u = float(D_i·(1/L)); a = L; t = float(t0 + U) |
| 3 | 0x6351a0(t, &D, &a, &push, &guid, &land, &head) returns 0, 1 or 2; 2 ends the call |
| 4 | on 1, τ = 0x635450(T − U, t, &D, &a, head, h_s); on 0, τ = T − U |
| 5 | +0x10 += D, per component; U = float(U + τ) |
| 6 | head ends through 0x633220, land through 0x7c6290; U + 0.0005 ≥ T ends with T |
| 7 | L −= a, the stall rules run, and the next step starts |
The derivation is in the doc.
Callers 2
- CMovement::ResolveFall collision
- CMovement::ProbeFallAway collision
Callees 13
- __ftol crt
- SetVector3 spline
- Vector3LengthSquared spline
- CMovement::SkipTime collision
- CMovement::SetTransportFromSupport collision
- CMovement::ReportOpcode2ca collision
- CMovement::ApplyLatchedDirections collision
- CMovement::RestartFallAtRest collision
- CMovement::LatchFallingFar collision
- CMovement::SweepAirborneStep collision
- CMovement::LimitStepByFall collision
- CMovement::UpdateAnchors collision
- CMovement::StopFalling collision
Calls and jumps by a bare address, from tables/calls.tsv.