简体   繁体   中英

Intersection with points in aframe

since the point's is just a 3d coordinate. It is very hard to intersect with it by cursor or mouse. But in three.js(here is an example https://threejs.org/examples/webgl_interactive_points.html ). The mouse can intersect with points very sensitive. Is there any solution in aframe for this problem? Thank you very much.

A-Frame has a mouse-based raycaster mode. Have you tried that?

https://aframe.io/docs/0.6.0/components/cursor.html#properties_rayorigin

<a-entity cursor="rayOrigin: mouse">

Then add the event listeners and handlers, etc ( https://aframe.io/aframe-school/#/10 )

Example: http://aframevr.github.io/aframe/examples/showcase/link-traversal

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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