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); }
public HandArgs(Hand handLeft, Hand handRight) { HandLeft = handLeft; HandRight = handRight; }