Don't show hands if position is not tracked+valid

This commit is contained in:
Patrick Nicolas
2024-09-05 12:50:55 +02:00
parent a70acbe6d2
commit 0fa694338d
4 changed files with 12 additions and 3 deletions
+2
View File
@@ -44,5 +44,7 @@ public:
using joint = std::pair<XrHandJointLocationEXT, XrHandJointVelocityEXT>;
std::optional<std::array<joint, XR_HAND_JOINT_COUNT_EXT>> locate(XrSpace space, XrTime time);
static bool check_flags(const std::array<joint, XR_HAND_JOINT_COUNT_EXT> & joints, XrSpaceLocationFlags position, XrSpaceVelocityFlags velocity);
};
} // namespace xr