Tweaked constants.

This commit is contained in:
Andrzej Kapolka 2014-01-10 15:50:14 -08:00
parent 515b40ecc3
commit a7e9434c96

View file

@ -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<PalmData>::iterator it = hand.getPalms().begin(); it != hand.getPalms().end(); it++) {
it->setActive(false);