From c044ce0d0830902b9ca86dcd9a725e5ef4f72eb1 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 2 Nov 2014 06:04:05 +0100 Subject: use quaternions for centering @KyokushinPL says was the only version that worked. Let's give it a try. Goddamn issue: #63 --- opentrack/tracker.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'opentrack/tracker.h') diff --git a/opentrack/tracker.h b/opentrack/tracker.h index 23939576..feb1f903 100644 --- a/opentrack/tracker.h +++ b/opentrack/tracker.h @@ -7,6 +7,7 @@ #include "plugin-support.h" #include "mappings.hpp" #include "pose.hpp" +#include "quat.hpp" #include "simple-mat.hpp" #include "../qfunctionconfigurator/functionconfig.h" @@ -32,7 +33,7 @@ private: std::atomic should_quit; SelectedLibraries const& libs; - dmat<3, 3> r_b; + Quat q_b; double t_b[3]; double map(double pos, bool invertp, Mapping& axis); -- cgit v1.2.3