mirror of
https://github.com/overte-org/overte.git
synced 2025-04-22 09:33:36 +02:00
Restore the gyro-only lean behavior based on linear accelerometer data.
This commit is contained in:
parent
a391e6fa19
commit
8d65323345
1 changed files with 1 additions and 0 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Reference in a new issue