mirror of
https://github.com/overte-org/overte.git
synced 2025-04-19 12:23:24 +02:00
Tweaked constants.
This commit is contained in:
parent
515b40ecc3
commit
a7e9434c96
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue