From 072e9afb54e2c583c35247a24701ae2fffa9e3dc Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz Date: Sun, 3 Nov 2019 13:22:13 +0000 Subject: [PATCH] t/psvr: Counter tracking origin offset At least until we have proper tracking for the PSVR. --- src/xrt/auxiliary/tracking/t_tracker_psvr.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/xrt/auxiliary/tracking/t_tracker_psvr.cpp b/src/xrt/auxiliary/tracking/t_tracker_psvr.cpp index 3068e318c..6f5c82455 100644 --- a/src/xrt/auxiliary/tracking/t_tracker_psvr.cpp +++ b/src/xrt/auxiliary/tracking/t_tracker_psvr.cpp @@ -279,8 +279,15 @@ t_psvr_create(struct xrt_frame_context *xfctx, return ret; } - // HACK - t.fusion.pos.y = 1.6f; + // HACK, to counter the tracking origin offset. + t.fusion.pos.x = 0.0f; + t.fusion.pos.y = 0.6f; + t.fusion.pos.z = -2.0f; + + t.fusion.rot.x = 0.0f; + t.fusion.rot.y = 1.0f; + t.fusion.rot.z = 0.0f; + t.fusion.rot.w = 0.0f; xrt_frame_context_add(xfctx, &t.node);