From 62e5b50e247397e10ef89006981b7df17deaeab5 Mon Sep 17 00:00:00 2001 From: Oren Hurvitz Date: Fri, 16 Aug 2019 13:44:43 +0300 Subject: [PATCH 1/2] Fixed the sprint speeds of Desktop vs HMD (they were flipped) --- interface/src/avatar/MyAvatar.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/interface/src/avatar/MyAvatar.cpp b/interface/src/avatar/MyAvatar.cpp index 6e0bfab69b..36b8d1c2a0 100644 --- a/interface/src/avatar/MyAvatar.cpp +++ b/interface/src/avatar/MyAvatar.cpp @@ -5205,10 +5205,9 @@ bool MyAvatar::isReadyForPhysics() const { void MyAvatar::setSprintMode(bool sprint) { if (qApp->isHMDMode()) { - _walkSpeedScalar = sprint ? AVATAR_DESKTOP_SPRINT_SPEED_SCALAR : AVATAR_WALK_SPEED_SCALAR; - } - else { _walkSpeedScalar = sprint ? AVATAR_HMD_SPRINT_SPEED_SCALAR : AVATAR_WALK_SPEED_SCALAR; + } else { + _walkSpeedScalar = sprint ? AVATAR_DESKTOP_SPRINT_SPEED_SCALAR : AVATAR_WALK_SPEED_SCALAR; } } From 35082a730edfddb768f1cafb9dd35aaf06b799d1 Mon Sep 17 00:00:00 2001 From: Oren Hurvitz Date: Sun, 27 Oct 2019 09:35:16 +0200 Subject: [PATCH 2/2] Changed the desktop sprint speed to 2.0. This change will not actually be felt by users, because the speed was already effectively 2.0 (because the sprint speeds for Desktop and HMD were reversed). --- libraries/shared/src/AvatarConstants.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/shared/src/AvatarConstants.h b/libraries/shared/src/AvatarConstants.h index a955e0f0c3..4a79f6b487 100644 --- a/libraries/shared/src/AvatarConstants.h +++ b/libraries/shared/src/AvatarConstants.h @@ -103,7 +103,7 @@ static const float MAX_AVATAR_HEIGHT = 1000.0f * DEFAULT_AVATAR_HEIGHT; // meter static const float MIN_AVATAR_HEIGHT = 0.005f * DEFAULT_AVATAR_HEIGHT; // meters static const float MIN_AVATAR_RADIUS = 0.5f * MIN_AVATAR_HEIGHT; static const float AVATAR_WALK_SPEED_SCALAR = 1.0f; -static const float AVATAR_DESKTOP_SPRINT_SPEED_SCALAR = 3.0f; +static const float AVATAR_DESKTOP_SPRINT_SPEED_SCALAR = 2.0f; static const float AVATAR_HMD_SPRINT_SPEED_SCALAR = 2.0f; enum AvatarTriggerReaction {