mirror of
https://github.com/overte-org/overte.git
synced 2025-08-13 19:19:42 +02:00
Adjusted the smooth time for the snap-turn remote view. Fixed tab issue.
This commit is contained in:
parent
786838d092
commit
24f2678cdd
2 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue