CMovement::TurnPitchDisplacement
function · collision · primitive
- Address
0x7c4fd0· 422 bytes, up to0x7c5175- Signature
void __thiscall (CMovement *this, float t, const float *rate, float *out)- Meaning
- Writes the displacement of a move that both turns and pitches, with a straight leg past the pitch clamp
- Confidence
- verified, proof one
- Finding
- collision/kinematics#turn-and-pitch-displacement
- Test
collision::turn_pitch_arc_difftest
Finding: Turn and pitch displacement in collision: kinematics
0x7c4fd0(t, override, out) combines both arcs. It takes ω as a float, Rh = fl(s/ω), and
Rv, Δ, τ as 0x7c5180 does; then φ = fl((t − τ)·ω), A = 0.5·(sin Δ·Rv + sin φ·Rh),
B = cos φ·Rh − Rh, C = fl(Rv − cos Δ·Rv), X = fl(A·hx − B·hy), Y = B·hx + A·hy:
out.x = fl(X·pc − C·ps)out.y = fl(Y)out.z = C·pc + X·ps, then theτcorrection of0x7c5180
B has the opposite sign of 0x7c52c0's, so the arc bends toward (hy, −hx) for ω > 0,
away from the side the facing turns to.
The derivation is in the doc.
Callers 1
- CMovement::ComputeDisplacement collision
Callees 2
- CMovement::GetTurnRate collision
- CMovement::GetPitchRate collision
Calls and jumps by a bare address, from tables/calls.tsv.