benilla-re systems structs docs

CGUnit_C::UpdateDisplayFacing

function · objectlayer · primitive

Address
0x600cd0 · 841 bytes, up to 0x601018
Meaning
Steers the display facing +0xc98: the mover's own, else toward the move or the target, a four-sample average
Confidence
verified, proof one
Finding
objectlayer/unitmovement#facing
Test
objectlayer::u4_facing_delta_difftest, objectlayer::u4_facing_dead_band_difftest, objectlayer::u4_facing_wrap_pi_delta_difftest, objectlayer::u4_facing_box_apply_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 5

Callees 9

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