benilla-re systems structs docs

s_cameraHalfTurn

global · uicamera

Address
0x80891c · 4 bytes, up to 0x80891f
Type
const float
Meaning
Holds pi, the half turn the camera facing filter wraps its error by
Confidence
verified, proof one
Finding
uicamera/driver#smoothing-the-facing

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.