From 0580ff48bedc819f2da4ec808a0fc25c29cf2561 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 27 Apr 2013 04:40:03 +0200 Subject: Map to degrees --- ftnoir_tracker_rift/ftnoir_tracker_rift.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ftnoir_tracker_rift') diff --git a/ftnoir_tracker_rift/ftnoir_tracker_rift.cpp b/ftnoir_tracker_rift/ftnoir_tracker_rift.cpp index 2c096c4a..769ca460 100644 --- a/ftnoir_tracker_rift/ftnoir_tracker_rift.cpp +++ b/ftnoir_tracker_rift/ftnoir_tracker_rift.cpp @@ -88,13 +88,13 @@ bool Rift_Tracker::GiveHeadPoseData(double *data) } #endif if (bEnableYaw) { - data[RX] = newHeadPose[RX]; + data[RX] = newHeadPose[RX] * 57.295781f; } if (bEnablePitch) { - data[RY] = newHeadPose[RY]; + data[RY] = newHeadPose[RY] * 57.295781f; } if (bEnableRoll) { - data[RZ] = newHeadPose[RZ]; + data[RZ] = newHeadPose[RZ] * 57.295781f; } } return pHMD.GetPtr() != NULL; -- cgit v1.2.3