CMovement::ResolveFreeMove
function · collision · primitive
- Address
0x634640· 787 bytes, up to0x634952- Signature
uint32_t __thiscall (CMovement *this, uint32_t time, uint32_t ms, float dist, float dirX, float dirY, float dirZ)- Meaning
- Moves a swimmer, flag-0x800 mover or flying spline along a direction, sliding on the world and the flipped liquid list
- Confidence
- verified, proof one
- Finding
- collision/resolve#free-move-resolver
- Test
collision::transport_mode_difftest,collision::transport_mode_hitindex_mismatch_probe
Finding: Free-move resolver in collision: resolve
0x634640(time, ms, dist, u) returns 0 when ms is 0, or on a transport when 0x633200
returns nonzero; otherwise it returns ms. Below |dist| = 2^-20 it returns at once. Else it sweeps
0xc4e52c along u for dist with 0x632ba0 (contact); a hit index equal to the list's count is
no hit. When the world list has not been hit in this call, a swimmer, unless S holds or flag
0x800 is set, also sweeps 0xc4e564 for the remaining distance. Without a hit the position
moves by u·a, a the allowed distance, and the call ends; a hit moves it by u·a and slides. A
failed sweep returns ms at once; after the first, nothing has moved.
The derivation is in the doc.
Callers 1
- CMovement::ResolveDisplacement collision
Callees 5
- CMovement::SweepVolume collision
- CMovement::TryClearTransport collision
- ComputeTrianglePushback collision
- InitPlaneUp collision
- CMovement::UpdateAnchors collision
Calls and jumps by a bare address, from tables/calls.tsv.