Leap Motion - Tracking both hands ?
in
Contributed Library Questions
•
1 month ago
Hey guys,
Anyone tried the LEAP Motion + Processing ?
I stuck at the point where I can track both hands… at the moment the code looks like this:
- for (Hand hand : leap.getHandList()) {
- PVector handPos = leap.getPosition(hand);
- playerpos = handPos.y;
- }
I just need the y axis but how do I transform the "hand" command to the second hand ? I use the LeapMotionP5 Library and somewhere I read that the first recognized hand is hand 0, the second one hand 1 … Would be great if anyone can tell me how to separately use them.
The gesture recognition example can handle two hands separately but has also this code:
- for (Hand hand : leap.getHandList()) {
- PVector handPos = leap.getPosition(hand);
- ellipse(handPos.x, handPos.y, 20, 20);
- }
Thanks,
1