diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2015-05-31 11:58:27 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2015-05-31 11:58:27 +0200 |
commit | d1e3a8fade55cbd3242ff3566cc148225316465a (patch) | |
tree | 7981578c9776b9d9a1417bb693087ab67a218d64 | |
parent | 85471c49c47020fcd0eb012024682671a2cb1257 (diff) |
main: switch rotation order for centering
This helps some PT clip model users, but can possibly break inertial
device centering, so needs further testing.
-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 0b465fc4..f5ce5275 100644 --- a/opentrack/tracker.cpp +++ b/opentrack/tracker.cpp @@ -130,7 +130,7 @@ void Tracker::logic() { double tmp[3] = { t(0, 0) - t_b[0], t(1, 0) - t_b[1], t(2, 0) - t_b[2] }; t_compensate(cam, tmp, tmp, false); - const rmat m_ = r * r_b.t(); + const rmat m_ = r_b.t() * r; const dmat<3, 1> euler = rmat::rmat_to_euler(m_); for (int i = 0; i < 3; i++) { |