summaryrefslogtreecommitdiffhomepage
path: root/logic
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-04-14 05:01:21 +0200
committerStanislaw Halik <sthalik@misaki.pl>2017-04-14 05:01:21 +0200
commitacb12232452d6a4be368702eedaa1ba871653eef (patch)
tree600d1cce39d2a085d843f68c90e31dd685d84c83 /logic
parente7a89ee7a6fb2a4fc77c80b4e094bf8b2febe798 (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.cpp10
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));
+ }
}
{