Forum Discussion

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

How to grab game objects using laser pointer ?

I used the method introduced in this blog "Easy Controller Selection" (https://developer.oculus.com/blog/easy-controller-selection/).

Basically I attached a line render to the controller model, and I am able to use it to select objects by pressing buttons.
I wonder if I am able to grab game objects in the same way. I used to use Windows Mixed Reality to develop games, and they have native support of laser pointer. So I am able to use the laser pointer to select and grab gameobjects simply by attaching grabbable scripts.
I know how to grab objects with OVR Avatar by attaching OVR Grabbable script, but I want to know if I can do the same thing without actually grab it with my hands.

TL;DR
I want to use the laser pointer to grab object as dragging it towards or away from me.

1 Reply

Replies have been turned off for this discussion