diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2013-04-27 04:40:03 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2013-04-27 04:40:03 +0200 |
commit | 0580ff48bedc819f2da4ec808a0fc25c29cf2561 (patch) | |
tree | ac589113b97d5464bc1bc98e0daba1c0937437a3 /ftnoir_tracker_rift | |
parent | dc8f3aa01da12be66160523c2fd76f7be1e11198 (diff) |
Map to degrees
Diffstat (limited to 'ftnoir_tracker_rift')
-rw-r--r-- | ftnoir_tracker_rift/ftnoir_tracker_rift.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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; |