示例#1
0
 public float PinchStrength(OVRPlugin.HandFinger finger)
 {
     if (IsTracked && _currentState.PinchStrength != null &&
         _currentState.PinchStrength.Length > (int)finger)
     {
         return(_currentState.PinchStrength[(int)finger]);
     }
     else
     {
         return(0.0f);
     }
 }
 private void AssignInitialMembers()
 {
     _rayToolView           = _rayToolViewGO.GetComponent <HandRayToolView>();
     _fingerTipPokeToolView = _fingerTipPokeToolViewGO.GetComponent <FingerTipPokeToolView>();
     _fingerToFollow        = (OVRPlugin.HandFinger)_fingerToFollowGO;
 }