コード例 #1
0
        // ------------------------------------------------------- Static Gesture Recognition -------------------------------------------------------

        private void analyzeStaticGestures()
        {
            if (leftHand.getSkeleton() != null)
            {
                recognizePeaceSign(leftHand.getSkeleton());
            }
            if (rightHand.getSkeleton() != null)
            {
                recognizePeaceSign(rightHand.getSkeleton());
            }
        }
コード例 #2
0
        private bool recognizePlayerFist(TrackedHand hand)
        {
            if (hand == null)
            {
                return(false);
            }

            SteamVR_Behaviour_Skeleton skeleton = hand.getSkeleton();

            if (skeleton != null)
            {
                return(hand.recognizeFist());
            }

            return(abilityActivated);
        }