mirror of
https://github.com/lubosz/overte.git
synced 2025-04-23 09:33:45 +02:00
Reduced the restore rate.
This commit is contained in:
parent
c56778c3bf
commit
db8575b59a
1 changed files with 1 additions and 1 deletions
|
@ -355,7 +355,7 @@ void MyAvatar::updateFromGyrosAndOrWebcam(bool gyroLook,
|
|||
_head.getFace().clearFrame();
|
||||
|
||||
// restore rotation, lean to neutral positions
|
||||
const float RESTORE_RATE = 0.5f;
|
||||
const float RESTORE_RATE = 0.05f;
|
||||
_head.setYaw(glm::mix(_head.getYaw(), 0.0f, RESTORE_RATE));
|
||||
_head.setRoll(glm::mix(_head.getRoll(), 0.0f, RESTORE_RATE));
|
||||
_head.setLeanSideways(glm::mix(_head.getLeanSideways(), 0.0f, RESTORE_RATE));
|
||||
|
|
Loading…
Reference in a new issue