AdaRoseCannon / aframe-xr-boilerplate

Get started quickly with VR and AR using AFrame
https://aframe-xr-starterkit.glitch.me/
MIT License
110 stars 20 forks source link

xr-follow component should take into account the camera rotation #21

Open vincentfretin opened 12 months ago

vincentfretin commented 12 months ago

The xr-follow component used to move the sword and water gun is only moving the position, not rotation.

AdaRoseCannon commented 12 months ago

That was intentional because it feels weird if it's fixed to camera exactly, it should probably lag or adjust only after the rotation exceeds a certain amount to prevent ti feeling like it's stuck to your head.

vincentfretin commented 12 months ago

Of course I meant here the camera y rotation only. The lag is a good idea. I also wanted to implement that. I did another component some weeks ago to put a dialogue box in front of me, I really struggled to do that lol and I wanted to also move it with some lag if exceeds a certain amount, like how the browser window in Quest is moving actually, exactly like that.