Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
samra2494's avatar
samra2494
Honored Guest
6 years ago

grab object using Oculus Rift raycast

Hey Guys,
I am very new to unity and am building a VR app for Oculus Go. I want to pick and move the object by pointing the ray from the controller on the object and then picking or releasing it by pressing the trigger button. I want the object to stay fixed at the end of the ray's position rather than coming suddenly onto the controller. 
If anyone could point me in a right direction or help me with this, I would greatly appreciate it!
Thanks in advance.

1 Reply

  • Anonymous's avatar
    Anonymous
    I believe this is called or similar to a "distance grab" - I'll try to locate a guide i saw... -https://developer.oculus.com/blog/distance-grab-sample-now-available-in-oculus-unity-sample-framework/