WrapAngleToPi
function · objectlayer · primitive
- Address
0x6084f0· 99 bytes, up to0x608552- Meaning
- Wraps an angle into −π to π with fmod beyond either end
- Confidence
- verified, proof two
- Finding
- objectlayer/unitmovement#facing
- Test
objectlayer::angle_wrap_pi_difftest
Finding: Facing in objectlayer: unit movement
A unit keeps a display facing at +0xc98 and a second facing at +0xc94. The active mover's
display follows the mover; another unit's turns toward its move direction or, idle, toward its
target, averaging four samples at +0xc9c. 0x6084f0 wraps an angle into −π to π.
The derivation is in the doc.
Callers 1
- CGUnit_C::Update objectlayer
Callees 1
- __CIfmod crt
Calls and jumps by a bare address, from tables/calls.tsv.