From a7e9434c961e68e4546ca5d8a343e246d1ad2794 Mon Sep 17 00:00:00 2001 From: Andrzej Kapolka Date: Fri, 10 Jan 2014 15:50:14 -0800 Subject: [PATCH] Tweaked constants. --- interface/src/devices/SixenseManager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/interface/src/devices/SixenseManager.cpp b/interface/src/devices/SixenseManager.cpp index 2498eec5ac..352cae44ab 100644 --- a/interface/src/devices/SixenseManager.cpp +++ b/interface/src/devices/SixenseManager.cpp @@ -101,7 +101,7 @@ void SixenseManager::update(float deltaTime) { palm->setRawPosition(position); // use the velocity to determine whether there's any movement - const float MOVEMENT_SPEED_THRESHOLD = 0.001f; + const float MOVEMENT_SPEED_THRESHOLD = 0.05f; if (glm::length(rawVelocity) > MOVEMENT_SPEED_THRESHOLD) { _lastMovement = usecTimestampNow(); } @@ -128,7 +128,7 @@ void SixenseManager::update(float deltaTime) { } // if the controllers haven't been moved in a while, disable - const int MOVEMENT_DISABLE_DURATION = 5 * 1000 * 1000; + const int MOVEMENT_DISABLE_DURATION = 30 * 1000 * 1000; if (usecTimestampNow() - _lastMovement > MOVEMENT_DISABLE_DURATION) { for (vector::iterator it = hand.getPalms().begin(); it != hand.getPalms().end(); it++) { it->setActive(false);