Fixed the silly and stupid subtle issue that was causing the bug in inconsistencies.

This commit is contained in:
trent 2017-05-03 12:35:35 -04:00
parent 24f2678cdd
commit fc3cce6b73

View file

@ -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