summaryrefslogtreecommitdiffhomepage
path: root/opentrack/tracker.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-09-12 19:51:34 +0200
committerStanislaw Halik <sthalik@misaki.pl>2016-09-12 20:41:43 +0200
commit16f391b203e20b91dff713c40c07aec4885c7350 (patch)
tree0af30742e4293735bcb4786669db5b78c4fd6e95 /opentrack/tracker.cpp
parent62bf6d69d42a842624dc11a0fc9efcc61d342968 (diff)
api/tracker: centering should go the other way
Diffstat (limited to 'opentrack/tracker.cpp')
-rwxr-xr-xopentrack/tracker.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/opentrack/tracker.cpp b/opentrack/tracker.cpp
index d8562f52..8313c8fc 100755
--- a/opentrack/tracker.cpp
+++ b/opentrack/tracker.cpp
@@ -168,10 +168,8 @@ 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);
- rmat m_;
- m_ = r_b.t() * r;
- const dmat<3, 1> euler = rmat::rmat_to_euler(m_);
+ const dmat<3, 1> euler = rmat::rmat_to_euler(r * r_b.t());
for (int i = 0; i < 3; i++)
{
value(i) = tmp[i];