Oculus’s documentations aren’t very clear, and almost inexistent. I’ve started working with VR recently, but I’ve been working with Unity for some time. I’m pretty disappointed on the lack of tutorials, and I really need to implement a gaze system for unity. For example, I wanna look at a cube, and then it will highlight, or play an animation, or something like this. I can only find these tutorials for UI, and I really needed one for 3D objects, can anyone give me a clue? Thanks.
I’ve got it in https://www.assetstore.unity3d.com/en/#!/content/88829
In general though, you raycast from the head (which in VR is in between the two eyes) along transform.forward. It will hit the colliders and then you know what it hit.
The first 15 mins of this video shows how to use GoogleVR for gaze input, which also works when built to GearVR.
Also have a pack on the asset store ‘Mobile VR Interaction Pack’ which handles gaze input:
1 Like
Thanks a lot, your channel is pretty good too, congratz!
1 Like