benilla-re systems structs docs

CMovement::ProbeFallAway

function · collision · primitive

Address
0x635f80 · 371 bytes, up to 0x6360f2
Signature
uint32_t __thiscall (CMovement *this, const float *dir, const float *start, float height)
Meaning
Returns 1 when a simulated fall carries the mover a radius from start, within 10 degrees of dir
Confidence
verified, proof one
Finding
collision/walking#fall-away-lookahead
Test
collision::resolve_fall_land_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 7

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