CMovement::UpdateAnchors
function · collision · orchestration
- Address
0x7c5cd0· 78 bytes, up to0x7c5d1d- Signature
void __thiscall (CMovement *this, uint32_t force)- Meaning
- Copies position, facing and pitch to the anchors, zeroes the elapsed time and recomputes the direction
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- collision/kinematics#anchors-and-elapsed-time
Finding: Anchors and elapsed time in collision: kinematics
0x7c5cd0(force) copies the live position, facing and pitch (+0x10 to +0x20) to the anchors
(+0x44 to +0x54), zeroes the elapsed time +0x58, calls 0x7c5a20(force), and calls the
empty 0x6307a0 with the owner's GUID.
Each substep the caller adds its time to +0x58 (0x618bb0 only while a bit of 0xf is set) and
asks 0x7c5360 for the displacement over the whole +0x58. 0x616cb0 adds it to the anchor position and subtracts the live +0x10,
and the resolver 0x634040 moves +0x10 by that step. So position, facing and pitch are
recomputed from the anchors every substep; only +0x58 accumulates.
The derivation is in the doc.
Callers 28
- CMovement::IntegrateStep collision
- CMovement::OnSetGravity collision
- CMovement::ApplyEventStatus collision
- CMovement::ResolveFreeMove collision
- CMovement::ResolveAirborneMove collision
- CMovement::ResolveWalk collision
- CMovement::StartFalling2 collision
- CMovement::StopFalling collision
- CMovement::SetPositionAndFacing collision
- CMovement::StartMove collision
- CMovement::ForceStopMove collision
- CMovement::StartStrafe collision
- CMovement::ForceStopStrafe collision
- CMovement::StartTurn collision
- CMovement::StopTurn collision
- CMovement::StartPitch collision
- CMovement::StopPitch collision
- CMovement::StartSwimming collision
- CMovement::SetFacing collision
- CMovement::SetPitch collision
- CMovement::SetTurnRate collision
- CMovement::SetRunSpeed collision
- CMovement::SetRunBackSpeed collision
- CMovement::SetWalkSpeed collision
- CMovement::SetSwimSpeed collision
- CMovement::SetSwimBackSpeed collision
- CMovement::SetRunMode collision
- CMovement::SetBit800 collision
Callees 2
- MovementNotifyZoneMgr collision
- CMovementData::CalcDirection collision
Calls and jumps by a bare address, from tables/calls.tsv.