A-frame Cursor Listener On Sky Element Not Firing
I am trying to attach a cursor listener to a sky element (equirectangular image as texture mapped to sphere) in A-Frame. The ultimate goal is to get the 2D coordinates of the textu
Solution 1:
The soon-to-be-released version of A-Frame has fixes that will expose the cursor UV intersection data in the click event. https://github.com/aframevr/aframe/tree/master/dist . First I recommend grabbing that.
The sky is far away so you need to extend the maxDistance
of the raycaster.
<a-entityraycaster="maxDistance: 6000; objects: a-sky"cursor></a-entity>
Post a Comment for "A-frame Cursor Listener On Sky Element Not Firing"