Răsfoiți Sursa

Thumbs up gesture also requires thumb to be pointing up;

bjorn 6 luni în urmă
părinte
comite
b72ef71f62
1 a modificat fișierele cu 1 adăugiri și 0 ștergeri
  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)
   return skeleton and
     getCurl(skeleton, 'thumb') < .1 and
+    getJointDirection(skeleton, 6).y > .4 and
     getCurl(skeleton, 'index') > .6 and
     getCurl(skeleton, 'middle') > .6 and
     getCurl(skeleton, 'ring') > .6 and