mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 06:37:27 +02:00
Shorten the long term average.
This commit is contained in:
parent
2191896126
commit
092f1fa4c8
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ void Faceshift::update() {
|
||||||
(_eyeGazeLeftPitch + _eyeGazeRightPitch) / 2.0f, (_eyeGazeLeftYaw + _eyeGazeRightYaw) / 2.0f, 0.0f))));
|
(_eyeGazeLeftPitch + _eyeGazeRightPitch) / 2.0f, (_eyeGazeLeftYaw + _eyeGazeRightYaw) / 2.0f, 0.0f))));
|
||||||
|
|
||||||
// compute and subtract the long term average
|
// compute and subtract the long term average
|
||||||
const float LONG_TERM_AVERAGE_SMOOTHING = 0.9999f;
|
const float LONG_TERM_AVERAGE_SMOOTHING = 0.999f;
|
||||||
if (!_longTermAverageInitialized) {
|
if (!_longTermAverageInitialized) {
|
||||||
_longTermAverageEyePitch = eulers.x;
|
_longTermAverageEyePitch = eulers.x;
|
||||||
_longTermAverageEyeYaw = eulers.y;
|
_longTermAverageEyeYaw = eulers.y;
|
||||||
|
|
Loading…
Reference in a new issue