Search Unity

Resolved Detect what object is grabbed with Oculus Quest 2

Discussion in 'AR/VR (XR) Discussion' started by dre38w, May 2, 2022.

  1. dre38w

    dre38w

    Joined:
    Nov 18, 2009
    Posts:
    137
    Hello.

    I've been using OVRGrabber to reference what is being grabbed/pinched. However, that is inaccurate because it requires a collider on the entire hand and causes accuracy issues when objects are close together. Using the InputOVR method and utilizing the Hand Grab Interactable component gives me way more options and better accuracy when grabbing.

    However, I'm having trouble finding out how to use InputOVR to detect what object is grabbed. Anyone know how I can access this?

    Thank you.
     
    xmanalis likes this.
  2. dre38w

    dre38w

    Joined:
    Nov 18, 2009
    Posts:
    137
    In case anyone else is wondering this as well: There is a component called Interactable Unity Event Wrapper that can be used for this type of thing. It'll go on the object we are interacting with. :)
     
    Miroslav_Kolesnik and xmanalis like this.
  3. lalefi

    lalefi

    Joined:
    Apr 27, 2021
    Posts:
    14
    hi, thanks for the info, it's really useful