Reduced the restore rate.

This commit is contained in:
Andrzej Kapolka 2013-09-10 11:25:30 -07:00
parent c56778c3bf
commit db8575b59a

View file

@ -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));