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); }
private void SetHandPosition(Hand hand, PXCMHandData.IHand handInfo) { var imagePosition = ToPoint3D(handInfo.QueryMassCenterImage()); var worldPosition = ToPoint3D(handInfo.QueryMassCenterWorld()); hand.Position = CreatePosition(imagePosition, worldPosition); }