Skip to main content
New Participant
November 3, 2022

Question Get Ray Pointer ID from Oculus Integration Package

Hello Everyone,

I'm having trouble performing something that should be quite straightforward.

The final goal is to make the correct controller vibrate when hovering a button. I got everything working except the capability to recognize which controller is the pointer from.

Once the pointer triggers the OnPointerEnter event, I want to get the information if it was the left or right controller and vibrate only the controller that triggered the action. Does anyone know how to do that?

    This topic has been closed for replies.

    1 reply

    New Participant
    February 7, 2023

    You can get the RayInteractor from the Data variable in the PointerEvent, that one has a Transform _rayOrigin for the ray origin. Maybe you could check that to find out where it originates from?