summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--opentrack/tracker.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/opentrack/tracker.cpp b/opentrack/tracker.cpp
index f5658503..e856b5b2 100644
--- a/opentrack/tracker.cpp
+++ b/opentrack/tracker.cpp
@@ -93,6 +93,7 @@ static dmat<3, 3> euler_to_rmat(const double* input)
void Tracker::t_compensate(const dmat<3, 3>& rmat, const double* xyz, double* output, bool rz)
{
+ // TY is really yaw axis. need swapping accordingly.
dmat<3, 1> tvec({ xyz[2], -xyz[0], -xyz[1] });
const dmat<3, 1> ret = rmat * tvec;
if (!rz)