mirror of
https://github.com/overte-org/overte.git
synced 2025-04-08 07:12:40 +02:00
Tablet-ui: fix tablet orientation for users in 2d desktop mode
Double 180 flip. Once before to account for -z forward of camera. Once after to account for avatar 180 flip.
This commit is contained in:
parent
eabd41d0e9
commit
9d124983a6
1 changed files with 2 additions and 2 deletions
|
@ -900,7 +900,7 @@ glm::quat Avatar::getAbsoluteJointRotationInObjectFrame(int index) const {
|
|||
_skeletonModel->getAbsoluteJointRotationInRigFrame(headJointIndex, rotation);
|
||||
}
|
||||
}
|
||||
return rotation;
|
||||
return Quaternions::Y_180 * rotation * Quaternions::Y_180;
|
||||
}
|
||||
default: {
|
||||
glm::quat rotation;
|
||||
|
@ -936,7 +936,7 @@ glm::vec3 Avatar::getAbsoluteJointTranslationInObjectFrame(int index) const {
|
|||
_skeletonModel->getAbsoluteJointTranslationInRigFrame(headJointIndex, translation);
|
||||
}
|
||||
}
|
||||
return translation;
|
||||
return Quaternions::Y_180 * translation * Quaternions::Y_180;
|
||||
}
|
||||
default: {
|
||||
glm::vec3 translation;
|
||||
|
|
Loading…
Reference in a new issue