Fix order of wrist and hand joints in Leapmotion controller

This commit is contained in:
David Rowe 2014-11-07 12:04:03 -08:00
parent 3323ac11ff
commit a50c3c1696
2 changed files with 3 additions and 3 deletions

View file

@ -353,7 +353,7 @@ var leapHands = (function () {
handOffset.x = -handOffset.x;
// Hand rotation in camera coordinates ...
handRotation = wrists[h].controller.getAbsRotation();
handRotation = hands[h].controller.getAbsRotation();
handRotation = {
x: handRotation.z,
y: handRotation.y,
@ -386,7 +386,7 @@ var leapHands = (function () {
z: hands[h].zeroPosition.z - handOffset.z
};
handRotation = wrists[h].controller.getAbsRotation();
handRotation = hands[h].controller.getAbsRotation();
handRotation = {
x: handRotation.z,
y: handRotation.y,

View file

@ -70,8 +70,8 @@ Leapmotion::Leapmotion() :
std::vector< Semantic > rootBones;
rootBones.push_back("elbow");
rootBones.push_back("hand");
rootBones.push_back("wrist");
rootBones.push_back("hand");
std::vector< Semantic > fingers;
fingers.push_back("thumb");