benilla-re systems structs docs

CCamera::FilterFacing

function · uicamera · primitive

Address
0x50d810 · 227 bytes, up to 0x50d8f2
Signature
float __thiscall (CCamera *this, float facing, bool moved)
Meaning
Limits the rate at which the camera follows a unit's facing
Confidence
verified, proof one
Finding
uicamera/driver#smoothing-the-facing
Test
ui::cam_50d810

Finding: Smoothing the facing in uicamera: the follow camera

For a unit other than the active mover, with the CVar camerasmooth nonzero and the unit moved since the last update, the camera follows the unit's facing at a limited rate. It keeps the last used facing (+0x184); the error to the new facing is wrapped to plus or minus π. An error of 0.09 radian or less uses the new facing; up to 15 degrees (0.2618) the facing moves by 0.09 toward it; beyond that by 0.2618. The result is wrapped into 0 to 2π and stored at +0x184.

The derivation is in the doc.

Callers 1

Callees 0

None by a direct call or jump.

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