summaryrefslogtreecommitdiffhomepage
path: root/FaceTrackNoIR/FTServer.h
diff options
context:
space:
mode:
authorWim Vriend <facetracknoir@gmail.com>2010-10-05 20:40:38 +0000
committerWim Vriend <facetracknoir@gmail.com>2010-10-05 20:40:38 +0000
commit6999bf3ef1c30d5af447c8cdd98213d1b1106a30 (patch)
tree7b72d37f030125bc16e60cb6c7d92a0a7baa6dae /FaceTrackNoIR/FTServer.h
parent9a573dbf66f8baddf1aabe79960c8658cbb0ee9e (diff)
Beta Curve configuration seems to work...
git-svn-id: svn+ssh://svn.code.sf.net/p/facetracknoir/code@22 19e81ba0-9b1a-49c3-bd6c-561e1906d5fb
Diffstat (limited to 'FaceTrackNoIR/FTServer.h')
-rw-r--r--FaceTrackNoIR/FTServer.h30
1 files changed, 16 insertions, 14 deletions
diff --git a/FaceTrackNoIR/FTServer.h b/FaceTrackNoIR/FTServer.h
index fc4476b4..72642785 100644
--- a/FaceTrackNoIR/FTServer.h
+++ b/FaceTrackNoIR/FTServer.h
@@ -99,20 +99,22 @@ private:
QLibrary FTClientLib;
public:
- void setHeadPosX(float x) { headPosX = x; }
- void setHeadPosY(float y) { headPosY = y; }
- void setHeadPosZ(float z) { headPosZ = z; }
-
- void setHeadRotX(float x) { headRotX = x; }
- void setHeadRotY(float y) { headRotY = y; }
- void setHeadRotZ(float z) { headRotZ = z; }
-
- void setVirtRotX(float rot) { virtRotX = rot; }
- void setVirtRotY(float rot) { virtRotY = rot; }
- void setVirtRotZ(float rot) { virtRotZ = rot; }
- void setVirtPosX(float pos) { virtPosX = pos; }
- void setVirtPosY(float pos) { virtPosY = pos; }
- void setVirtPosZ(float pos) { virtPosZ = pos; }
+ void setHeadPosX(float x) { headPosX = x * 10; }
+ void setHeadPosY(float y) { headPosY = y * 10; }
+ void setHeadPosZ(float z) { headPosZ = z * 10; }
+
+ void setHeadRotX(float x) { headRotX = getRadsFromDegrees(x); }
+ void setHeadRotY(float y) { headRotY = getRadsFromDegrees(y); }
+ void setHeadRotZ(float z) { headRotZ = getRadsFromDegrees(z); }
+
+ void setVirtRotX(float rot) { virtRotX = getRadsFromDegrees(rot); }
+ void setVirtRotY(float rot) { virtRotY = getRadsFromDegrees(rot); }
+ void setVirtRotZ(float rot) { virtRotZ = getRadsFromDegrees(rot); }
+ void setVirtPosX(float pos) { virtPosX = pos * 10; }
+ void setVirtPosY(float pos) { virtPosY = pos * 10; }
+ void setVirtPosZ(float pos) { virtPosZ = pos * 10; }
+
+ float getRadsFromDegrees ( float degrees ) { return (degrees * 0.017453f); }
};