fix: correct Quest 3 controller driver-from-head offsets

This commit is contained in:
xXJsonDeruloXx committed 2026-10-19 01:02:12 -04:00
1 parent ebc7f89fe3
commit b262d390cb
1 file changed
+5 -1
+5 -1
View File
@@ -1100,7 +1100,11 @@ public:
void UpdateXr(const DroidDeckXrHand &hand, int64_t predicted) {
if (id_ == k_unTrackedDeviceIndexInvalid) return;
DriverPose_t pose{};
pose.qWorldFromDriverRotation.w = pose.qDriverFromHeadRotation.w = 1;
pose.qWorldFromDriverRotation.w = 1;
pose.qDriverFromHeadRotation = {.94147, .3371, 0, 0};
pose.vecDriverFromHeadTranslation[0] = right_ ? .007 : -.007;
pose.vecDriverFromHeadTranslation[1] = .036124;
pose.vecDriverFromHeadTranslation[2] = -.037617;
pose.qRotation.w = 1;
pose.deviceIsConnected = hand.active;
pose.poseIsValid = hand.active && XrTrackingFile::Tracked(hand.pose);