Browse Source

Thumbs up gesture also requires thumb to be pointing up;

bjorn 6 months ago
parent
commit
b72ef71f62
1 changed files with 1 additions and 0 deletions
  1. 1 0
      examples/Interaction/Hand_Gestures/main.lua

+ 1 - 0
examples/Interaction/Hand_Gestures/main.lua

@@ -26,6 +26,7 @@ end
 local function isThumbsUp(skeleton)
 local function isThumbsUp(skeleton)
   return skeleton and
   return skeleton and
     getCurl(skeleton, 'thumb') < .1 and
     getCurl(skeleton, 'thumb') < .1 and
+    getJointDirection(skeleton, 6).y > .4 and
     getCurl(skeleton, 'index') > .6 and
     getCurl(skeleton, 'index') > .6 and
     getCurl(skeleton, 'middle') > .6 and
     getCurl(skeleton, 'middle') > .6 and
     getCurl(skeleton, 'ring') > .6 and
     getCurl(skeleton, 'ring') > .6 and