diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2015-08-28 12:28:29 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2015-08-28 12:28:39 +0200 |
commit | e07a72493f6145b55efb305c955032ffd73e94c3 (patch) | |
tree | 66aa17e7d9290dea371be8dd085219b0a3cc0e32 /opentrack/tracker.cpp | |
parent | c5463fcedf2ed6e6cf75c7056071b26a3f3da08f (diff) |
tracker: change centering order again
Needs more testing with PT and other non-inertial trackers.
Issue: #227
Diffstat (limited to 'opentrack/tracker.cpp')
-rw-r--r-- | opentrack/tracker.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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++) { |