CMovement::RotateQueuedFacings
function · collision · primitive
- Address
0x617080· 117 bytes, up to0x6170f4- Signature
void __thiscall (CMovement *this, float angle)- Meaning
- Adds an angle to the facing of each queued facing or status event, wrapped once into [0, 2π]
- Confidence
- verified, proof one
- Finding
- collision/mover#queued-facing-rotation
- Test
collision::angle_wrap_difftest
Finding: Queued facing rotation in collision: mover
0x617080(f) walks the mover's queue and, for each event of type 16 or with byte +0x4c, adds f
to its facing +0x1c: a sum above 2π (0x40c90fdb) loses 2π once, else a sum below 0 gains 2π
once, and the result is stored as a float. Exactly 2π and NaN are stored unchanged. For |f| < 2π and a
facing in [0, 2π) the result lies in [0, 2π].
The derivation is in the doc.
Callers 1
- CMovement::SetTransportGuid collision
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.