cancel
Showing results for 
Search instead for 
Did you mean: 

Which Touch Controller / OVRGrabber is Holding the Object

Savewhitt
Honored Guest

48 programming hours straight, for the life of me I cannot  find out which Hand is holding the item ??? LTouch or RTouch ????

 

I Edited My OVRGrabber Script :

  protected OVRInput.Controller m_controller;

  public OVRInput.Controller GetController()

  {

    return m_controller;

  }

ASSUMING Something Like This Will Shoot Only If The Trigger Is Pressed On The Same Hand As The Grabbed Object

    void Update()

    {

        OVRInput.Update();

        if(OVRGrabbable.isGrabbed && OVRInput.Get(OVRInput.Axis1D.PrimaryIndexTrigger, OVRGrabbable.grabbedBy.GetController()))

        {

            simpleShoot.TriggerShoot();

        }

    }

 

Why is this not working or is there a better way to keep track of which item is in which hand ???

 

0 REPLIES 0