mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 14:03:55 +02:00
Fixed the silly and stupid subtle issue that was causing the bug in inconsistencies.
This commit is contained in:
parent
24f2678cdd
commit
fc3cce6b73
1 changed files with 6 additions and 1 deletions
|
@ -404,7 +404,12 @@ void MyAvatar::update(float deltaTime) {
|
|||
|
||||
if (_smoothOrientationTimer < _smoothOrientationTime) {
|
||||
_rotationChanged = true;
|
||||
_smoothOrientationTimer = min(_smoothOrientationTimer + deltaTime, _smoothOrientationTime);
|
||||
_smoothOrientationTimer+= deltaTime;
|
||||
|
||||
if (_smoothOrientationTimer >= _smoothOrientationTime) {
|
||||
// Take it back to astronomical value land.
|
||||
_smoothOrientationTimer = std::numeric_limits<float>::max();
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef DEBUG_DRAW_HMD_MOVING_AVERAGE
|
||||
|
|
Loading…
Reference in a new issue