mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:24:00 +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()) {
|
||||
estimatedPosition = webcam->getEstimatedPosition();
|
||||
estimatedRotation = webcam->getEstimatedRotation();
|
||||
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
_head.setPitch(estimatedRotation.x * AMPLIFY_PITCH);
|
||||
_head.setYaw(estimatedRotation.y * AMPLIFY_YAW);
|
||||
|
|
Loading…
Reference in a new issue