簡體   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