benilla-re systems structs docs

CMovement::StartTurn

function · collision · orchestration

Address
0x7c6d90 · 56 bytes, up to 0x7c6dc7
Signature
void __thiscall (CMovement *this, uint32_t left)
Meaning
Sets 0x10 for a nonzero argument or 0x20 for zero, clearing the other, and re-anchors
Confidence
verified, proof one
Finding
collision/commands#turn-and-pitch-commands

Finding: Turn and pitch commands in collision: commands

0x7c6d90(left) sets 0x10 and clears 0x20 for a nonzero argument, 0x20 and clears 0x10 for zero, and re-anchors; it tests no other bit, so turning starts while rooted or falling. 0x7c6dd0 clears 0x10 and 0x20 and re-anchors only when one was set, and returns 1 then, else 0. 0x7c6df0(up) acts only while swimming (0x200000): it sets 0x40 and clears 0x80 for nonzero, 0x80 and clears 0x40 for zero, and re-anchors. 0x7c6e30 is 0x7c6dd0 for 0x40 and 0x80. None of the four touches the speed.

The derivation is in the doc.

Callers 1

Callees 1

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