Merge pull request #571 from ey6es/opencv

Quick fix for something I broke in mouse/touch took.
This commit is contained in:
Andrzej Kapolka 2013-06-21 14:30:59 -07:00
commit 0c184b9912

View file

@ -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);