public float GetHandConfidence(WaveVR_GestureManager.EGestureHand hand) { if (WaveVR_GestureManager.Instance == null) { return(0); } return(WaveVR_GestureManager.Instance.GetHandConfidence(hand)); }
public bool IsHandPoseValid(WaveVR_GestureManager.EGestureHand hand) { if (WaveVR_GestureManager.Instance == null) { return(false); } return(WaveVR_GestureManager.Instance.IsHandPoseValid(hand)); }
public void SetGesturePointer(WaveVR_GestureManager.EGestureHand hand, GameObject pointer) { DEBUG("SetGesturePointer() " + hand + ", pointer: " + (pointer != null ? pointer.name : "null")); for (int i = 0; i < GestureHandList.Length; i++) { if (GestureHandList [i] == hand) { gesturePointers [i].Pointer = pointer; break; } } }
public void SetGestureBeam(WaveVR_GestureManager.EGestureHand hand, GameObject beam) { DEBUG("SetGestureBeam() " + hand + ", beam: " + (beam != null ? beam.name : "null")); for (int i = 0; i < GestureHandList.Length; i++) { if (GestureHandList[i] == hand) { gestureBeams[i].Beam = beam; break; } } }
public GameObject GetGesturePointer(WaveVR_GestureManager.EGestureHand hand) { int index = 0; for (int i = 0; i < GestureHandList.Length; i++) { if (GestureHandList [i] == hand) { index = i; break; } } return(gesturePointers [index].Pointer); }
private void ActivateBeamPointer(WaveVR_GestureManager.EGestureHand hand, bool active) { GameObject beam = WaveVR_GestureBeamProvider.Instance.GetGestureBeam(hand); if (beam != null && beam.GetComponent <WaveVR_GestureBeam>() != null) { beam.GetComponent <WaveVR_GestureBeam>().ShowBeam = active; } GameObject pointer = WaveVR_GesturePointerProvider.Instance.GetGesturePointer(hand); if (pointer != null && pointer.GetComponent <WaveVR_GesturePointer>() != null) { pointer.GetComponent <WaveVR_GesturePointer>().ShowPointer = active; } }
private bool ValidateParameters() { gestureFocusHand = WaveVR_GestureManager.GestureFocusHand; GameObject new_pointer = WaveVR_GesturePointerProvider.Instance.GetGesturePointer(gestureFocusHand); if (new_pointer != null && !GameObject.ReferenceEquals(pointerObject, new_pointer)) { pointerObject = new_pointer; gesturePointer = pointerObject.GetComponent <WaveVR_GesturePointer> (); } if (pointerObject == null || gesturePointer == null) { return(false); } return(true); }
public float GetHandConfidence(WaveVR_GestureManager.EGestureHand hand) { return(Instance.GetHandConfidence(hand)); }
public bool IsHandPoseValid(WaveVR_GestureManager.EGestureHand hand) { return(Instance.IsHandPoseValid(hand)); }
public GesturePointer(WaveVR_GestureManager.EGestureHand type, GameObject pointer) { Hand = type; Pointer = pointer; }
public GestureBeam(WaveVR_GestureManager.EGestureHand type, GameObject beam) { Hand = type; Beam = beam; }