mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 18:16:45 +02:00
a finger-twisting typo
This commit is contained in:
parent
81996aaeb7
commit
5dc13143c9
1 changed files with 1 additions and 1 deletions
|
@ -889,7 +889,7 @@ void OpenXrInputPlugin::InputDevice::getHandTrackingInputs(int i, const mat4& se
|
||||||
auto rotation = xrQuatToGlm(joints[joint].pose.orientation);
|
auto rotation = xrQuatToGlm(joints[joint].pose.orientation);
|
||||||
|
|
||||||
// rotate the thumb bones from thumbnail-relative to palm-relative, 90°
|
// rotate the thumb bones from thumbnail-relative to palm-relative, 90°
|
||||||
if (joint >= XR_HAND_JOINT_THUMB_METACARPAL_EXT && i <= XR_HAND_JOINT_THUMB_TIP_EXT) {
|
if (joint >= XR_HAND_JOINT_THUMB_METACARPAL_EXT && joint <= XR_HAND_JOINT_THUMB_TIP_EXT) {
|
||||||
// ccw on the right hand, cw on the left hand
|
// ccw on the right hand, cw on the left hand
|
||||||
rotation = glm::rotate(rotation, glm::radians(i == 0 ? 90.0f : -90.0f), Vectors::UNIT_Z);
|
rotation = glm::rotate(rotation, glm::radians(i == 0 ? 90.0f : -90.0f), Vectors::UNIT_Z);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue