예제 #1
0
 private void ExtractHand(PXCMHandData handData, Hand hand, PXCMHandData.AccessOrderType access)
 {
     PXCMHandData.IHand handInfo;
     if (handData.QueryHandData(access, 0, out handInfo) != NoError) {
         hand.Visible = false;
         return;
     }
     hand.Visible = true;
     var openness = handInfo.QueryOpenness();
     hand.Open = openness > 75;
     var position = handInfo.QueryMassCenterWorld();
     hand.Distance = (int)(position.z * 100);
 }
예제 #2
0
 public HandArgs(Hand handLeft, Hand handRight)
 {
     HandLeft = handLeft;
     HandRight = handRight;
 }