mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 06:44:06 +02:00
reduce the lean recovery timescale
This commit is contained in:
parent
9a4db152ff
commit
7a649084bd
1 changed files with 1 additions and 1 deletions
|
@ -362,7 +362,7 @@ void MyAvatar::updateFromGyros(float deltaTime) {
|
|||
}
|
||||
} else {
|
||||
// restore rotation, lean to neutral positions
|
||||
const float RESTORE_PERIOD = 1.f; // seconds
|
||||
const float RESTORE_PERIOD = 0.25f; // seconds
|
||||
float restorePercentage = glm::clamp(deltaTime/RESTORE_PERIOD, 0.f, 1.f);
|
||||
head->setPitchTweak(glm::mix(head->getPitchTweak(), 0.0f, restorePercentage));
|
||||
head->setYawTweak(glm::mix(head->getYawTweak(), 0.0f, restorePercentage));
|
||||
|
|
Loading…
Reference in a new issue