benilla-re systems structs docs

CMovement::ApplyGravityState

function · collision · primitive

Address
0x619aa0 · 163 bytes, up to 0x619b42
Signature
void __thiscall (CMovement *this)
Meaning
Ends a fall and broadcasts while 0x800 or a spline holds the mover, else starts a fall
Confidence
verified, proof one
Finding
collision/handlers#gravity-toggle

Finding: Gravity toggle in collision: handlers

Flag 0x800 suspends falling. 0x619aa0 acts on the flags as they stand: when 0x800 is set, or a running spline has flag 0x200, it records fallMoving (0x2000 with +0xa0 ≠ 0.0, NaN counting as nonzero) and the flags without 0x800, ends the fall (0x7c6290), applies the latched directions (0x61ab20), broadcasts with those old flags at the update time (0x61a820(t, 0, old, fallMoving, 0)), and, idle with an empty queue, unlinks. Otherwise it tries to start a fall and links the mover only when the fall starts (0x617b00). Opcode 0x2ad applies through 0x619c50: tag 0x1b when the status has 0x800, else 0x1a; applied, it re-anchors and runs 0x619aa0.

The derivation is in the doc.

Callers 3

Callees 7

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