CGUnit_C::UpdateDisplayFacing
function · objectlayer · primitive
- Address
0x600cd0· 841 bytes, up to0x601018- 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
- CCamera::MakeViewAngles uicamera
- YawNeedsMove uicamera
- CCamera::ArmAutoReturn uicamera
- CCamera::SetView uicamera
- CGUnit_C::Update objectlayer
Callees 9
- 0x4100f0 crt
- OsGetAsyncTimeMs core
- ClntObjMgrObjectPtr objectlayer
- ClntObjMgrGetActivePlayer objectlayer
- HeadingBetweenPoints objectlayer
- GetInputControl input
- CInputControl::IsDragging input
- CInputControl::YawGate input
- CGUnit_C::GetLootGuid objectlayer
Calls and jumps by a bare address, from tables/calls.tsv.