mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-03 23:33:10 +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) {
|
||||
//generate orientation directions based on Euler angles...
|
||||
|
||||
float pitch = -_pitch;
|
||||
float pitch = _pitch;
|
||||
float yaw = -_yaw;
|
||||
float roll = _roll;
|
||||
float roll = -_roll;
|
||||
|
||||
if (lookingInMirror) {
|
||||
yaw = _yaw;
|
||||
roll = -_roll;
|
||||
roll = _roll;
|
||||
}
|
||||
|
||||
_orientation.setToPitchYawRoll
|
||||
|
|
Loading…
Reference in a new issue