diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2017-04-14 05:01:21 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2017-04-14 05:01:21 +0200 |
commit | acb12232452d6a4be368702eedaa1ba871653eef (patch) | |
tree | 600d1cce39d2a085d843f68c90e31dd685d84c83 /logic | |
parent | e7a89ee7a6fb2a4fc77c80b4e094bf8b2febe798 (diff) |
logic/tracker.cpp: explicit set to zeros with custom center
cf. https://github.com/opentrack/opentrack/issues/352#issuecomment-293885962
Diffstat (limited to 'logic')
-rw-r--r-- | logic/tracker.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/logic/tracker.cpp b/logic/tracker.cpp index 320053b9..2f07304e 100644 --- a/logic/tracker.cpp +++ b/logic/tracker.cpp @@ -205,16 +205,18 @@ void Tracker::logic() if (own_center_logic) { - scaled_rotation.rotation = rmat::eye(); - real_rotation.rotation = rmat::eye(); + scaled_rotation.rot_center = rmat::eye(); + real_rotation.rot_center = rmat::eye(); + + t_center = euler_t(); } else { real_rotation.rot_center = real_rotation.rotation.t(); scaled_rotation.rot_center = scaled_rotation.rotation.t(); - } - t_center = euler_t(&value(TX)); + t_center = euler_t(&value(TX)); + } } { |