mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 00:36:30 +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();
|
Webcam* webcam = Application::getInstance()->getWebcam();
|
||||||
glm::vec3 estimatedPosition, estimatedRotation;
|
glm::vec3 estimatedPosition, estimatedRotation;
|
||||||
if (gyros->isActive()) {
|
if (gyros->isActive()) {
|
||||||
|
estimatedPosition = gyros->getEstimatedPosition();
|
||||||
estimatedRotation = gyros->getEstimatedRotation();
|
estimatedRotation = gyros->getEstimatedRotation();
|
||||||
|
|
||||||
} else if (webcam->isActive()) {
|
} else if (webcam->isActive()) {
|
||||||
|
|
Loading…
Reference in a new issue