繁体   English   中英

与框架中的点相交

[英]Intersection with points in aframe

因为该点只是3D坐标。 用光标或鼠标与它相交是非常困难的。 但是在three.js中(这是一个示例https://threejs.org/examples/webgl_interactive_points.html )。 鼠标可以与非常敏感的点相交。 有没有解决这个问题的办法? 非常感谢你。

A-Frame具有基于鼠标的光线投射器模式。 你有尝试过吗?

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM