diff options
Diffstat (limited to 'ftnoir_tracker_rift')
-rw-r--r-- | ftnoir_tracker_rift/ftnoir_tracker_rift.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ftnoir_tracker_rift/ftnoir_tracker_rift.cpp b/ftnoir_tracker_rift/ftnoir_tracker_rift.cpp index e58dbf1b..1af99803 100644 --- a/ftnoir_tracker_rift/ftnoir_tracker_rift.cpp +++ b/ftnoir_tracker_rift/ftnoir_tracker_rift.cpp @@ -7,7 +7,7 @@ using namespace OVR; //used to turn on the re-centre spring effect -#define RECENTRE_SPRING +//#define OPENTRACK_RIFT_RECENTRE_SPRING Rift_Tracker::Rift_Tracker() { @@ -104,7 +104,7 @@ bool Rift_Tracker::GiveHeadPoseData(double *data) float pitch = 0.0f; float roll = 0.0f; hmdOrient.GetEulerAngles<Axis_Y, Axis_X, Axis_Z>(&yaw, &pitch , &roll); -#ifdef RECENTRE_SPRING +#ifdef OPENTRACK_RIFT_RECENTRE_SPRING newHeadPose[Yaw] = newHeadPose[Yaw]*0.99999 + (yaw-old_yaw); if(newHeadPose[Yaw]>0.02)newHeadPose[Yaw]-= 0.000005; if(newHeadPose[Yaw]<-0.02)newHeadPose[Yaw]+= 0.000005; |