From 61bb853cdd2e37a5afcd1018fead287d3e0831a2 Mon Sep 17 00:00:00 2001 From: David Rowe Date: Mon, 19 Jun 2017 17:26:55 +1200 Subject: [PATCH] Fix hand position --- plugins/hifiLeapMotion/src/LeapMotionPlugin.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/hifiLeapMotion/src/LeapMotionPlugin.cpp b/plugins/hifiLeapMotion/src/LeapMotionPlugin.cpp index cd406f2676..35e2f8d8e0 100644 --- a/plugins/hifiLeapMotion/src/LeapMotionPlugin.cpp +++ b/plugins/hifiLeapMotion/src/LeapMotionPlugin.cpp @@ -384,10 +384,10 @@ void LeapMotionPlugin::processFrame(const Leap::Frame& frame) { auto arm = hand.arm(); if (hands[i].isLeft()) { - _joints[LeapMotionJointIndex::LeftHand].position = LeapVectorToVec3(hand.palmPosition()); + _joints[LeapMotionJointIndex::LeftHand].position = LeapVectorToVec3(hand.wristPosition()); _joints[LeapMotionJointIndex::LeftHand].orientation = LeapBasisToQuat(LEFT_SIDE_SIGN, hand.basis()); } else { - _joints[LeapMotionJointIndex::RightHand].position = LeapVectorToVec3(hand.palmPosition()); + _joints[LeapMotionJointIndex::RightHand].position = LeapVectorToVec3(hand.wristPosition()); _joints[LeapMotionJointIndex::RightHand].orientation = LeapBasisToQuat(RIGHT_SIDE_SIGN, hand.basis()); } }