Search Unity

How to add a raycast/laserpointer to left oculus controller?

Discussion in 'VR' started by KenniKure, Sep 4, 2019.

  1. KenniKure

    KenniKure

    Joined:
    Aug 7, 2019
    Posts:
    39
    I have a teleporter on the right hand controller, and when i press and hold the right controller trigger a ray/laser shows up and when I release the right trigger I am teleported to where the ray/laser was.

    I want a similar laser integrated on the left hand oculus controller. How can I do that? I need a laser to point on buttons on my UI menu and that way click the buttons/interact with them with the laser.

    How should I do that? I tried with some of the scripts in Unity, for instance the laserpointer script, OVRRaycaster ect but nothing has worked. How do I create a laser/ray on the left controller when i press Left trigger? :)
     
    manon1811 and ROBYER1 like this.