private void SetHandPosition(Hand hand, PXCMHandData.IHand handInfo) {
     var world = handInfo.QueryMassCenterWorld();
     if (_smoothers.ContainsKey(hand)) {
         world = _smoothers[hand].SmoothValue(world);
     }
     var imagePosition = ToPoint3D(handInfo.QueryMassCenterImage());
     var worldPosition = ToPoint3D(world);
     hand.Position = CreatePosition(imagePosition, worldPosition);
 }
Exemplo n.º 2
0
 private void SetHandPosition(Hand hand, PXCMHandData.IHand handInfo)
 {
     var imagePosition = ToPoint3D(handInfo.QueryMassCenterImage());
     var worldPosition = ToPoint3D(handInfo.QueryMassCenterWorld());
     hand.Position = CreatePosition(imagePosition, worldPosition);
 }