Esempio n. 1
0
 public bool IsHandPoseValid(EGestureHand hand)
 {
     if (hasHandTrackingData)
     {
         if (hand == EGestureHand.LEFT)
         {
             return(handSkeletonData.left.confidence > 0.1f);
         }
         if (hand == EGestureHand.RIGHT)
         {
             return(handSkeletonData.right.confidence > 0.1f);
         }
     }
     return(false);
 }
Esempio n. 2
0
 public float GetHandConfidence(EGestureHand hand)
 {
     if (hasHandTrackingData)
     {
         if (hand == EGestureHand.LEFT)
         {
             return(handSkeletonData.left.confidence);
         }
         if (hand == EGestureHand.RIGHT)
         {
             return(handSkeletonData.right.confidence);
         }
     }
     return(0);
 }