Skip to main content
New Participant
June 12, 2025

Adding Raycast to gaze tracking

  • June 12, 2025
  • 0 replies
  • 312 views

Hello! For my project I want to add ray cast to OVR eye gaze and log down the gameobject my eyes are lookin at.

But I have a problem with Ray cast. Now I added a RayInteractor and set its origin to OVR eye gaze object (which i set tracking mode to be head space). The ray is rotating in the way I expected, but its origin is always in world center. If i change the eye gaze object to be world space or tracking space, the origin of ray would be my eye position instead of world center; but the ray would disappear or go out of vision after my head rotate to an angle > 45 degrees.

Another thing is, how can I retrive the interactable that my eye gaze is colliding with?