You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Fix typo in OpenXR pose orientation check
This commit is contained in:
@@ -216,7 +216,7 @@ void OpenXRHand::_update_skeleton() {
|
|||||||
const auto &pose = location.pose;
|
const auto &pose = location.pose;
|
||||||
|
|
||||||
if (location.locationFlags & XR_SPACE_LOCATION_ORIENTATION_VALID_BIT) {
|
if (location.locationFlags & XR_SPACE_LOCATION_ORIENTATION_VALID_BIT) {
|
||||||
if (pose.orientation.x != 0 || pose.orientation.y != 0 || pose.orientation.y != 0 || pose.orientation.w != 0) {
|
if (pose.orientation.x != 0 || pose.orientation.y != 0 || pose.orientation.z != 0 || pose.orientation.w != 0) {
|
||||||
quaternions[i] = Quaternion(pose.orientation.x, pose.orientation.y, pose.orientation.z, pose.orientation.w);
|
quaternions[i] = Quaternion(pose.orientation.x, pose.orientation.y, pose.orientation.z, pose.orientation.w);
|
||||||
inv_quaternions[i] = quaternions[i].inverse();
|
inv_quaternions[i] = quaternions[i].inverse();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user