Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

SteamVR Raycast

Discussion in 'VR' started by Kaiwhitehat, May 6, 2019.

  1. Kaiwhitehat

    Kaiwhitehat

    Joined:
    Mar 5, 2019
    Posts:
    19
    Hey,

    has anybody experience in using RayCasts in SteamVR Unity? I am looking for a way to better interact with my VR UI and RayCasting seems like a good approach. Unfortunately, the SteamVR Plugin does not have any finished RayCast-Scripts to use and I could not find any good tutorials for SteamVR in Unity. Most Tutorials are for Occulus Rift and I cannot use them.

    Also should I use the Player or the CameraRig? What is better for using Scripts and why?

    Thanks in advance!
     
  2. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    9,350
    do you want to raycast from eyes or from the controller (like laser pointer)?
     
  3. Kaiwhitehat

    Kaiwhitehat

    Joined:
    Mar 5, 2019
    Posts:
    19
    I want to do it from the controller. Maybe later I would try from the head but for now my main focus is the controller.
     
  4. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    9,350