mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-04-12 19:12:36 +02:00
Fix hand position
This commit is contained in:
parent
cacc89e8b6
commit
61bb853cdd
1 changed files with 2 additions and 2 deletions
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue