After incorporating a click handler on primitive geometry from A-Frame, the setup looks like this:
<a-scene>
<a-sphere id="ball" cursor-listener material="color: red" position="-3 3 -5" onclick="showplane('#box1')" >
</a-sphere>
</a-scene>
My goal is to animate a plane geometry when the sphere is clicked. Once the plane is visible to the user, I need to attach a click handler for the plane.
Check out the JSFiddle demonstration here: https://jsfiddle.net/bhupi1011/9ptLqa32/
Unfortunately, the click handlers are not working on either of the geometries. Any help would be appreciated.
Thank you.