diff options
Diffstat (limited to 'ftnoir_protocol_sc/ftnoir_protocol_sc.cpp')
-rw-r--r-- | ftnoir_protocol_sc/ftnoir_protocol_sc.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/ftnoir_protocol_sc/ftnoir_protocol_sc.cpp b/ftnoir_protocol_sc/ftnoir_protocol_sc.cpp index 90ca3dba..39c98ea7 100644 --- a/ftnoir_protocol_sc/ftnoir_protocol_sc.cpp +++ b/ftnoir_protocol_sc/ftnoir_protocol_sc.cpp @@ -86,17 +86,17 @@ void FTNoIR_Protocol::loadSettings() { //
// Update Headpose in Game.
//
-void FTNoIR_Protocol::sendHeadposeToGame( THeadPoseData *headpose, THeadPoseData *rawheadpose ) {
+void FTNoIR_Protocol::sendHeadposeToGame( double *headpose, double *rawheadpose ) {
PDWORD_PTR MsgResult = 0;
- virtSCRotX = -1.0f * headpose->pitch; // degrees
- virtSCRotY = -1.0f * headpose->yaw;
- virtSCRotZ = headpose->roll;
+ virtSCRotX = -headpose[RY]; // degrees
+ virtSCRotY = -headpose[RX];
+ virtSCRotZ = headpose[RZ];
- virtSCPosX = headpose->x/100.f; // cm to meters
- virtSCPosY = headpose->y/100.f;
- virtSCPosZ = -1.0f * headpose->z/100.f;
+ virtSCPosX = headpose[TX]/100.f; // cm to meters
+ virtSCPosY = headpose[TY]/100.f;
+ virtSCPosZ = -headpose[TZ]/100.f;
//
// It's only useful to send data, if the connection was made.
|