From d81be2ae03b1bdd244345bb61be7b0ce22f5a557 Mon Sep 17 00:00:00 2001 From: schlegp Date: Tue, 1 Sep 2026 16:05:27 +0200 Subject: [PATCH] Fix angular velocity sign in pose_list The angular velocity was worked out with the wrong formula. It used dq * q, but it should be dq * q^-1 (the inverse of q, which is just its conjugate here because q is normalized). Using q instead of its inverse pointed the angular velocity the wrong way. Games read this value when you let go of a controller, so thrown objects came out spinning wrong. --- server/driver/pose_list.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/driver/pose_list.cpp b/server/driver/pose_list.cpp index a19291ca..704813e8 100644 --- a/server/driver/pose_list.cpp +++ b/server/driver/pose_list.cpp @@ -285,7 +285,7 @@ std::pair pose_list::get_at(XrTime at_timestamp_ns) (*orientation.dy)[1], (*orientation.dy)[2], (*orientation.dy)[3]}; - Eigen::Quaternionf half_ω = dq * q; + Eigen::Quaternionf half_ω = dq * q.conjugate(); flags(XRT_SPACE_RELATION_ANGULAR_VELOCITY_VALID_BIT); ret.angular_velocity = {