Exemplo n.º 1
0
        public Transform GetFingerTransform(device_type_t deviceType, ApolloHandData.FingerName finger, PhalangeType phalange)
        {
            HandRig hand = GetHand(deviceType);

            if (hand == null)
            {
                throw new ArgumentOutOfRangeException("phalange", phalange, null);
            }

            switch (phalange)
            {
            case PhalangeType.Proximal:
                return(hand.GetFingerRig(finger).Proximal);

            case PhalangeType.Intermedial:
                return(hand.GetFingerRig(finger).Intermedial);

            case PhalangeType.Distal:
                return(hand.GetFingerRig(finger).Distal);

            default:
                throw new ArgumentOutOfRangeException("phalange", phalange, null);
            }
        }
Exemplo n.º 2
0
        public Transform GetWristTransform(device_type_t deviceType)
        {
            HandRig hand = GetHand(deviceType);

            return(hand?.WristTransform);
        }