CMovement::PitchArcDisplacement
function · collision · primitive
- Address
0x7c5180· 308 bytes, up to0x7c52b3- Signature
void __thiscall (CMovement *this, float t, float *out)- Meaning
- Writes the displacement along a vertical arc, with a straight leg past the pitch clamp
- Confidence
- verified, proof one
- Finding
- collision/kinematics#pitch-arc-displacement
- Test
collision::pitch_arc_difftest
Finding: Pitch arc displacement in collision: kinematics
0x7c5180(t, out), with p = 0x7c5c90(): Rv = fl((1/p)·s), Δ = fl(p·t), θ = p·t + +0x54.
Past a clamp the time over it is τ = fl((θ − π/2)·fl(1/p)) and Δ = fl(π/2 − +0x54) for
θ > π/2, or τ = fl((θ + π/2)·fl(1/p)) and Δ = fl(−π/2 − +0x54) for θ < −π/2; else
τ = 0 (NaN included). With H = sin Δ·Rv, V = Rv − cos Δ·Rv and P = H·pc − V·ps:
out = (fl(P·hx), fl(P·hy), z), z = V·pc + H·ps. When |τ| ≥ 2⁻²⁰ or NaN, z becomes
z + τ·s if |Δ + +0x54 − π/2| < 2⁻²⁰, else z − τ·s: a straight climb or dive at the clamp.
The derivation is in the doc.
Callers 1
- CMovement::ComputeDisplacement collision
Callees 1
- CMovement::GetPitchRate collision
Calls and jumps by a bare address, from tables/calls.tsv.