Set orientation/position tracked bits when valid for FB body tracking

Quest runtime appears to not set these bits even while the orientation
and position are being tracked.
This commit is contained in:
Sapphire
2025-06-08 18:07:23 +02:00
committed by xytovl
parent 3d468bf8d6
commit 7bf24565d9
+6 -4
View File
@@ -117,13 +117,15 @@ std::optional<std::array<wivrn::from_headset::body_tracking::pose, wivrn::from_h
};
if (joint_pose.locationFlags & XR_SPACE_LOCATION_ORIENTATION_VALID_BIT)
{
pose.flags |= wivrn::from_headset::body_tracking::orientation_valid;
if (joint_pose.locationFlags & XR_SPACE_LOCATION_POSITION_VALID_BIT)
pose.flags |= wivrn::from_headset::body_tracking::position_valid;
if (joint_pose.locationFlags & XR_SPACE_LOCATION_ORIENTATION_TRACKED_BIT)
pose.flags |= wivrn::from_headset::body_tracking::orientation_tracked;
if (joint_pose.locationFlags & XR_SPACE_LOCATION_POSITION_TRACKED_BIT)
}
if (joint_pose.locationFlags & XR_SPACE_LOCATION_POSITION_VALID_BIT)
{
pose.flags |= wivrn::from_headset::body_tracking::position_valid;
pose.flags |= wivrn::from_headset::body_tracking::position_tracked;
}
poses[num_poses++] = std::move(pose);
}