benilla-re systems structs docs

CMovement::SaveMotionState

function · collision · orchestration

Address
0x635ea0 · 110 bytes, up to 0x635f0d
Signature
void * __thiscall (CMovement *this, void *out)
Meaning
Copies the anchors, fall time, direction, heading basis, flags and speed into a 56-byte record
Confidence
verified, proof one
Finding
collision/walking#fall-away-lookahead
Test
collision::state_copies_difftest

Finding: Fall-away lookahead in collision: walking

0x635f80(dir, start, h) returns 1 when a free fall from the current state would carry the mover at least r = +0xb0 horizontally from start, in a direction whose dot with dir exceeds cos 10°. It simulates T = round(1000·√(((h + 0.1) + (h + 0.1))·(1/19.291105))) ms, half away from zero: it saves 56 bytes of state (0x635ea0), starts a fall (0x7c61f0(0)), takes D = 0x7c6140(T), calls 0x635600(0, T − done, (+0x68, +0x6c, −D), 0) while flag 0x2000 holds and done < T, and restores the state (0x635f10). The position, +0x7c and +0xa0 stay as the fall left them, and skipped time can still be reported.

The derivation is in the doc.

Callers 1

Callees 0

None by a direct call or jump.

Calls and jumps by a bare address, from tables/calls.tsv.