// ------------------------------------------------------- Static Gesture Recognition ------------------------------------------------------- private void analyzeStaticGestures() { if (leftHand.getSkeleton() != null) { recognizePeaceSign(leftHand.getSkeleton()); } if (rightHand.getSkeleton() != null) { recognizePeaceSign(rightHand.getSkeleton()); } }
private bool recognizePlayerFist(TrackedHand hand) { if (hand == null) { return(false); } SteamVR_Behaviour_Skeleton skeleton = hand.getSkeleton(); if (skeleton != null) { return(hand.recognizeFist()); } return(abilityActivated); }