AFrame: mouse and Oculus Go


#1

I’m remixing the “aframe 360 gallery” to show images and I want to be able to click with the Oculus Go controller. I was able to make it work, but that broke the site when viewed in 2D, with the mouse: dragging still works to move the image but clicking doesn’t work.

You can see the code for yourself at https://glitch.com/~therapeutic-hammer

How do I make an aframe where I can click either with the 3dof controller, or with the mouse?


#2

I don’t know, someone else around here might but I think you’ll get a better response on https://aframe.io/community/


#3

Thanks Gareth! I think I figured it out, the trick is to add the following attribute to the a-scene tag: cursor="rayOrigin:mouse"


#4

Ah, great - pleased to hear you got it sorted!