public virtual bool IsPressing(InputManager.Hands hand) { selectedHand = (hand == InputManager.Hands.Left) ? OVRInput.Controller.LTouch : OVRInput.Controller.RTouch; return(OVRInput.Get(OVRInput.Axis1D.PrimaryIndexTrigger, selectedHand) > 0.2); }
public virtual Quaternion GetLocalRotation(InputManager.Hands hand) { selectedHand = (hand == InputManager.Hands.Left) ? OVRInput.Controller.LTouch : OVRInput.Controller.RTouch; return(OVRInput.GetLocalControllerRotation(selectedHand)); }
OVRInput.Controller selectedHand; //Mano de OVR public virtual Vector3 GetLocalPosition(InputManager.Hands hand) { selectedHand = (hand == InputManager.Hands.Left) ? OVRInput.Controller.LTouch : OVRInput.Controller.RTouch; return(OVRInput.GetLocalControllerPosition(selectedHand)); }
public virtual Quaternion GetLocalRotation(InputManager.Hands hand) { return(Quaternion.identity); }
public virtual Vector3 GetLocalPosition(InputManager.Hands hand) { return(Vector3.zero); }
public virtual bool IsPressing(InputManager.Hands hand) { return(false); }