mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 19:59:28 +02:00
Merge pull request #571 from ey6es/opencv
Quick fix for something I broke in mouse/touch took.
This commit is contained in:
commit
0c184b9912
1 changed files with 3 additions and 0 deletions
|
@ -295,6 +295,9 @@ void Avatar::updateHeadFromGyrosAndOrWebcam() {
|
||||||
} else if (webcam->isActive()) {
|
} else if (webcam->isActive()) {
|
||||||
estimatedPosition = webcam->getEstimatedPosition();
|
estimatedPosition = webcam->getEstimatedPosition();
|
||||||
estimatedRotation = webcam->getEstimatedRotation();
|
estimatedRotation = webcam->getEstimatedRotation();
|
||||||
|
|
||||||
|
} else {
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
_head.setPitch(estimatedRotation.x * AMPLIFY_PITCH);
|
_head.setPitch(estimatedRotation.x * AMPLIFY_PITCH);
|
||||||
_head.setYaw(estimatedRotation.y * AMPLIFY_YAW);
|
_head.setYaw(estimatedRotation.y * AMPLIFY_YAW);
|
||||||
|
|
Loading…
Reference in a new issue