From 0f312d4c9b432f2b3b249aac1e85650d2ae0399c Mon Sep 17 00:00:00 2001 From: Philip Rosedale Date: Wed, 3 Jul 2013 23:17:43 -0700 Subject: [PATCH] Tuned smooth gyro look values to feel better. --- interface/src/Head.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/interface/src/Head.cpp b/interface/src/Head.cpp index 429b78cd2e..9812d80acf 100644 --- a/interface/src/Head.cpp +++ b/interface/src/Head.cpp @@ -223,11 +223,11 @@ void Head::simulate(float deltaTime, bool isMine) { if (isMine && _cameraFollowsHead) { // If we are using gyros and using gyroLook, have the camera follow head but with a null region // to create stable rendering view with small head movements. - const float CAMERA_FOLLOW_HEAD_RATE_START = 0.05f; - const float CAMERA_FOLLOW_HEAD_RATE_MAX = 0.25f; - const float CAMERA_FOLLOW_HEAD_RATE_RAMP_RATE = 1.5f; - const float CAMERA_STOP_TOLERANCE_DEGREES = 0.25f; - const float CAMERA_START_TOLERANCE_DEGREES = 15.0f; + const float CAMERA_FOLLOW_HEAD_RATE_START = 0.01f; + const float CAMERA_FOLLOW_HEAD_RATE_MAX = 0.5f; + const float CAMERA_FOLLOW_HEAD_RATE_RAMP_RATE = 1.05f; + const float CAMERA_STOP_TOLERANCE_DEGREES = 0.1f; + const float CAMERA_START_TOLERANCE_DEGREES = 2.0f; float cameraHeadAngleDifference = glm::length(glm::vec2(_pitch - _cameraPitch, _yaw - _cameraYaw)); //if (cameraHeadAngleDifference > 0.1f) { // printLog("angleDiff = %0.2f\n", cameraHeadAngleDifference);