AFrame: mouse and Oculus Go

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

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

I don’t know, someone else around here might but I think you’ll get a better response on

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

1 Like

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