Compress quaternions in hand tracking packets

This commit is contained in:
Guillaume Meunier
2026-01-16 18:01:05 +01:00
parent 3702cc05b8
commit 317cd6bb91
5 changed files with 138 additions and 4 deletions
+2 -1
View File
@@ -207,7 +207,8 @@ static std::optional<std::array<from_headset::hand_tracking::pose, XR_HAND_JOINT
for (int i = 0; i < XR_HAND_JOINT_COUNT_EXT; i++)
{
poses[i] = {
.pose = (*joints)[i].first.pose,
.position = (*joints)[i].first.pose.position,
.orientation = pack((*joints)[i].first.pose.orientation),
.linear_velocity = (*joints)[i].second.linearVelocity,
.angular_velocity = (*joints)[i].second.angularVelocity,
.radius = uint16_t((*joints)[i].first.radius * 10'000),