Adjusted the smooth time for the snap-turn remote view. Fixed tab issue.

This commit is contained in:
trent 2017-05-03 12:05:21 -04:00
parent 786838d092
commit 24f2678cdd
2 changed files with 4 additions and 4 deletions

View file

@ -1868,10 +1868,10 @@ void MyAvatar::updateOrientation(float deltaTime) {
if (snapTurn) {
// Whether or not there is an existing smoothing going on, just reset the smoothing timer and set the starting position as the avatar's current position, then smooth to the new position.
_smoothOrientationInitial = initialOrientation;
_smoothOrientationInitial = initialOrientation;
_smoothOrientationTarget = getOrientation();
_smoothOrientationTimer = 0.0f;
}
_smoothOrientationTimer = 0.0f;
}
getHead()->setBasePitch(getHead()->getBasePitch() + getDriveKey(PITCH) * _pitchSpeed * deltaTime);

View file

@ -629,7 +629,7 @@ private:
Setting::Handle<bool> _useAdvancedMovementControls;
// Smoothing.
const float SMOOTH_TIME_ORIENTATION = 0.15f;
const float SMOOTH_TIME_ORIENTATION = 0.5f;
// Smoothing data for blending from one position/orientation to another on remote agents.
float _smoothOrientationTime;