diff options
Diffstat (limited to 'facetracknoir/tracker.cpp')
-rw-r--r-- | facetracknoir/tracker.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/facetracknoir/tracker.cpp b/facetracknoir/tracker.cpp index db2a7af3..dd37e883 100644 --- a/facetracknoir/tracker.cpp +++ b/facetracknoir/tracker.cpp @@ -120,11 +120,14 @@ void Tracker::run() { for (int i = 0; i < 6; i++)
{
- auto& axis = mainApp->axis(i);
raw_6dof.axes[i] = newpose[i];
+
+ auto& axis = mainApp->axis(i);
+
int k = axis.opts.src;
if (k < 0 || k >= 6)
continue;
+
axis.headPos = newpose[k];
}
@@ -162,7 +165,7 @@ void Tracker::run() { t_compensate(output_camera.axes, output_camera.axes, mainApp->s.tcomp_tz);
if (Libraries->pProtocol) {
- Libraries->pProtocol->sendHeadposeToGame( output_camera.axes ); + Libraries->pProtocol->sendHeadposeToGame( output_camera.axes );
}
}
|