因为该点只是一个三维坐标。它很难通过光标或鼠标与其相交。但是在three.js中(这里是一个示例https://threejs.org/examples/webgl_interactive_points.html)。鼠标可以与非常敏感的点相交。在aframe中有没有解决这个问题的方法?非常感谢。
发布于 2017-08-11 08:45:49
A帧具有基于鼠标的光线投射器模式。你试过吗?
https://aframe.io/docs/0.6.0/components/cursor.html#properties_rayorigin
<a-entity cursor="rayOrigin: mouse">
然后添加事件侦听器和处理程序等(https://aframe.io/aframe-school/#/10)
示例:http://aframevr.github.io/aframe/examples/showcase/link-traversal
https://stackoverflow.com/questions/45617557
复制相似问题