diff options
author | mm0zct <the_cartographer@hotmail.com> | 2013-10-05 11:25:17 +0100 |
---|---|---|
committer | mm0zct <the_cartographer@hotmail.com> | 2013-10-05 11:25:17 +0100 |
commit | 819823b8d35db9101e89fa31dae58d689bb597cd (patch) | |
tree | 1e0b3a7f166e1200e34a51e1d3ff99df0a06ee01 /ftnoir_tracker_rift/ftnoir_tracker_rift.cpp | |
parent | e5f1e165616bd1dfcfbdf8fd19228fee2a657bc9 (diff) |
renamed the re-centre spring define to OPENTRACK_RIFT_RECENTRE_SPRING
no longer default
Diffstat (limited to 'ftnoir_tracker_rift/ftnoir_tracker_rift.cpp')
-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; |