From e07a72493f6145b55efb305c955032ffd73e94c3 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 28 Aug 2015 12:28:29 +0200 Subject: tracker: change centering order again Needs more testing with PT and other non-inertial trackers. Issue: #227 --- opentrack/tracker.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'opentrack') diff --git a/opentrack/tracker.cpp b/opentrack/tracker.cpp index 403e87c5..c9e34c2d 100644 --- a/opentrack/tracker.cpp +++ b/opentrack/tracker.cpp @@ -134,7 +134,7 @@ void Tracker::logic() { double tmp[3] = { t(0) - t_b[0], t(1) - t_b[1], t(2) - t_b[2] }; t_compensate(cam, tmp, tmp, false); - const rmat m_ = r_b.t() * r; + const rmat m_ = r * r_b.t(); const dmat<3, 1> euler = rmat::rmat_to_euler(m_); for (int i = 0; i < 3; i++) { -- cgit v1.2.3