From a50c3c1696873d1c7fd2d9c921816f5d04192e3e Mon Sep 17 00:00:00 2001 From: David Rowe Date: Fri, 7 Nov 2014 12:04:03 -0800 Subject: [PATCH] Fix order of wrist and hand joints in Leapmotion controller --- examples/leapHands.js | 4 ++-- interface/src/devices/Leapmotion.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/leapHands.js b/examples/leapHands.js index 437637dc3f..47e4a51552 100644 --- a/examples/leapHands.js +++ b/examples/leapHands.js @@ -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, diff --git a/interface/src/devices/Leapmotion.cpp b/interface/src/devices/Leapmotion.cpp index a3794123ce..0c1433f216 100644 --- a/interface/src/devices/Leapmotion.cpp +++ b/interface/src/devices/Leapmotion.cpp @@ -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");