CMovement::TurnArcDisplacement
function · collision · primitive
- Address
0x7c52c0· 147 bytes, up to0x7c5352- Signature
void __thiscall (CMovement *this, float t, const float *rate, float *out)- Meaning
- Writes the displacement along a horizontal circle of radius speed over turn rate
- Confidence
- verified, proof one
- Finding
- collision/kinematics#turn-arc-displacement
- Test
collision::simple_turn_move_difftest
Finding: Turn arc displacement in collision: kinematics
0x7c52c0(t, override, out) moves along a circle. With s = +0x84, ω the float *override or
the unrounded 0x7c5c50(), (hx, hy) = (+0x68, +0x6c) and (pc, ps) = (+0x70, +0x74):
R = fl(s/ω), φ = fl(ω·t), A = sin φ·R, B = R − cos φ·R, then
out.x = fl((A·hx − B·hy)·pc)out.y = fl((B·hx + A·hy)·pc)out.z = fl((s·ps)·t)
The arc bends toward (−hy, hx) for ω > 0. sin φ and cos φ are floats.
The derivation is in the doc.
Callers 1
- CMovement::ComputeDisplacement collision
Callees 1
- CMovement::GetTurnRate collision
Calls and jumps by a bare address, from tables/calls.tsv.