mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-04 01:44:21 +02:00
reversed gyro for head (didn't know the headset was on backwards :)
This commit is contained in:
parent
e09e01b81e
commit
2781a354a8
1 changed files with 3 additions and 3 deletions
|
@ -118,13 +118,13 @@ void Head::setLooking(bool looking) {
|
||||||
void Head::calculateGeometry(bool lookingInMirror) {
|
void Head::calculateGeometry(bool lookingInMirror) {
|
||||||
//generate orientation directions based on Euler angles...
|
//generate orientation directions based on Euler angles...
|
||||||
|
|
||||||
float pitch = -_pitch;
|
float pitch = _pitch;
|
||||||
float yaw = -_yaw;
|
float yaw = -_yaw;
|
||||||
float roll = _roll;
|
float roll = -_roll;
|
||||||
|
|
||||||
if (lookingInMirror) {
|
if (lookingInMirror) {
|
||||||
yaw = _yaw;
|
yaw = _yaw;
|
||||||
roll = -_roll;
|
roll = _roll;
|
||||||
}
|
}
|
||||||
|
|
||||||
_orientation.setToPitchYawRoll
|
_orientation.setToPitchYawRoll
|
||||||
|
|
Loading…
Reference in a new issue