CMovement::SnapIfFar
function · collision · primitive
- Address
0x616d60· 123 bytes, up to0x616dda- Signature
void __thiscall (CMovement *this, const float *point)- Meaning
- Moves the mover to a point when the squared distance is 9.0 or more, or NaN
- Confidence
- verified, proof one
- Finding
- collision/mover#snap-beyond-three-yards
- Test
collision::dead_band_difftest
Finding: Snap beyond three yards in collision: mover
0x616d60(p) computes S = (dz² + dx²) + dy² from p − position in 53 bits. When S < 9.0 it
does nothing; otherwise, NaN included, it stores p as the position and calls 0x7c6290,
0x7c4930 and 0x634030. 0x616d30 calls it with the spline's point at +0x58, then sets the
spline's +0x20 to its +0x24 and ORs 1 into its +0x18.
The derivation is in the doc.
Callers 3
- CMovement::FinishSpline collision
- CMovement::IntegrateStep collision
- CMovement::BroadcastStateChange collision
Callees 3
- CMovement::IgnoreWorldPosition collision
- CMovement::TransportToWorld collision
- CMovement::StopFalling collision
Calls and jumps by a bare address, from tables/calls.tsv.