Example #1
0
 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);
 }
Example #2
0
 public virtual Quaternion GetLocalRotation(InputManager.Hands hand)
 {
     selectedHand = (hand == InputManager.Hands.Left) ? OVRInput.Controller.LTouch : OVRInput.Controller.RTouch;
     return(OVRInput.GetLocalControllerRotation(selectedHand));
 }
Example #3
0
    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));
    }
Example #4
0
 public virtual Quaternion GetLocalRotation(InputManager.Hands hand)
 {
     return(Quaternion.identity);
 }
Example #5
0
 public virtual Vector3 GetLocalPosition(InputManager.Hands hand)
 {
     return(Vector3.zero);
 }
Example #6
0
 public virtual bool IsPressing(InputManager.Hands hand)
 {
     return(false);
 }