summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-03-13 23:44:35 +0100
committerStanislaw Halik <sthalik@misaki.pl>2015-03-13 23:56:56 +0100
commit8c87149041f00ca83fe71f0de78e01d229a19b59 (patch)
tree45d7ce62e015fd1104f8ab8776cbdcd730bff943
parent851c87c8653c3badda7cb0621e6c247cbbc41832 (diff)
translation also needs rotating for off-center camera
Issue: #137
-rw-r--r--opentrack/tracker.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/opentrack/tracker.cpp b/opentrack/tracker.cpp
index 6ce9a75f..f70dd819 100644
--- a/opentrack/tracker.cpp
+++ b/opentrack/tracker.cpp
@@ -105,6 +105,7 @@ void Tracker::logic()
dmat<3, 1> t { value(0), value(1), value(2) };
r = cam * r;
+ t = cam * t;
bool can_center = false;