Quantcast
Channel: AR/VR (XR) Discussion
Viewing all articles
Browse latest Browse all 12131

Moving gameObject along a fixed path based on head movement

$
0
0
Hi,

I have a vr camera with a reticle that i use to select an object hovering in front of some ui. I then raise the object up to indicate you are moving it then i wish to move the object along an x axis to appear above the other items.

However currently the reticle will appear over the other items but the gameObject is always lagging behind. The code I am using is as follows. I get the local position of the gameObjects parent, I then find out how far the camera has moved since the last...

Moving gameObject along a fixed path based on head movement

Viewing all articles
Browse latest Browse all 12131

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>