s_facingThresholdHigh
global · uicamera
- Address
0x808a2c· 4 bytes, up to0x808a2f- Type
const float- Meaning
- Holds 0.2617994, 15 degrees, a threshold the camera facing filter compares its error with
- 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.