mirror of
https://github.com/overte-org/overte.git
synced 2025-08-16 10:32:19 +02:00
Sniffing glue, wrong week, etc.
This commit is contained in:
parent
ced1fca2e4
commit
bc523092ba
1 changed files with 3 additions and 0 deletions
|
@ -471,6 +471,9 @@ void MyAvatar::updateFromGyrosAndOrWebcam(float pitchFromTouch, bool turnWithHea
|
|||
const float LINEAR_DEAD_ZONE = 0.95f;
|
||||
float torsoDelta = glm::length(relativePosition) - TORSO_LENGTH;
|
||||
setDriveKeys(UP, glm::clamp(torsoDelta * LINEAR_DRIVE_SCALE - LINEAR_DEAD_ZONE, 0.0f, 1.0f));
|
||||
|
||||
} else {
|
||||
setDriveKeys(UP, 0.0f);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue