playMaker

Author Topic: Help with attach object to a Reticle in VR.  (Read 1387 times)

Playnoob

  • Playmaker Newbie
  • *
  • Posts: 21
Help with attach object to a Reticle in VR.
« on: April 03, 2016, 06:11:37 AM »
Hey all.
 I'm back to Playmaker (I didnt realize I had bought it from playmaker store, and almost bought it a second time from asset store!)

I am a real newbie as my few old posts will show, and what I want to do seems simple, until I try to implement it.

What I want to accomplish is
- When wearing a VR headset if the user "looks" via a reticle, at an object, say a cube. and taps the left mouse button (or on gearVR the side pad which also emulates the standard mouse input in Unity)

... then I want that cube to be attached to the reticle.
So they can look at some other location and on releasing the mouse button, the cube will be placed at the new location.

I'd really appreciate some help on this.
I've seen the quite nice and straightforward VR examples on Unity site, but they don't have one that does this "attach an object to reticle on mouse click"
Unity samples are here: https://unity3d.com/learn/tutorials/topics/virtual-reality/interaction-vr

P.s it would also be great if VR specific actions/events were part of unity for interaction.