Search Unity

Need tutorials to implement Gaze on Gear VR?

Discussion in 'AR/VR (XR) Discussion' started by iseta, Apr 28, 2017.

  1. iseta

    iseta

    Joined:
    May 5, 2016
    Posts:
    48
    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.
     
  2. greggtwep16

    greggtwep16

    Joined:
    Aug 17, 2012
    Posts:
    1,546
    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.
     
    Last edited: Apr 29, 2017
  3. Selzier

    Selzier

    Joined:
    Sep 23, 2014
    Posts:
    652
    iseta likes this.
  4. iseta

    iseta

    Joined:
    May 5, 2016
    Posts:
    48
    Thanks a lot, your channel is pretty good too, congratz!
     
    Selzier likes this.