Restore the gyro-only lean behavior based on linear accelerometer data.

This commit is contained in:
Andrzej Kapolka 2013-08-19 13:14:35 -07:00
parent a391e6fa19
commit 8d65323345

View file

@ -323,6 +323,7 @@ void Avatar::updateFromGyrosAndOrWebcam(bool gyroLook,
Webcam* webcam = Application::getInstance()->getWebcam();
glm::vec3 estimatedPosition, estimatedRotation;
if (gyros->isActive()) {
estimatedPosition = gyros->getEstimatedPosition();
estimatedRotation = gyros->getEstimatedRotation();
} else if (webcam->isActive()) {