CMovement::IntegrateStep
function · collision · primitive
- Address
0x616de0· 439 bytes, up to0x616f96- Signature
void __thiscall (CMovement *this, uint32_t end, uint32_t length)- Meaning
- Integrates one step in substeps, by the spline or the mover's motion, committing each through 0x616cb0
- Confidence
- verified, proof one
- Finding
- collision/mover#substep-loop
- Test
collision::integrate_apply_add_difftest,collision::integrate_unapply_sub_difftest
Finding: Substep loop in collision: mover
0x616de0(end, L) returns at once when 0x616bf0 rejects the position or L = 0. Each pass,
while flags & 0x20ff, with r = L − done: +0x58 += r, delta = 0, then
- live spline (
+0xa4set, its+0x18without bit 0x4):0x616af0(end, r, &delta), returning on 0;acc = anchor + delta, anchor+0x44; - otherwise
0x7c5360(+0x58, 0x618920(), &delta), returning on 0; when+0x14c ≠ 0and0x6191c0(end − r, &(anchor + delta))returns nonzero,deltabecomes that point − anchor;
then done += 0x616cb0(end − r, r, &delta), until done ≥ L. After the loop, if the position is
valid: with a live spline 0x616d60(&acc), and with a live spline whose +0x18 has bit 0x200,
0x7c5cd0(0).
The derivation is in the doc.
Callers 1
- CMovement::AdvanceTo collision
Callees 8
- CMovement::GetSplineStep collision
- CMovement::IsPositionValid collision
- CMovement::ResolveStep collision
- CMovement::SnapIfFar collision
- CMovement::GetFacingBlendRate collision
- CMovement::BlendTowardHead collision
- CMovement::ComputeDisplacement collision
- CMovement::UpdateAnchors collision
Calls and jumps by a bare address, from tables/calls.tsv.