有没有办法在对象上的鼠标事件中获取光标的 uv 坐标?

Is there a way to get the uv coords of the cursor in a mouse event on an object?

我正在尝试在光标与其相交的位置处在对象上生成一个元素。

A-Frame(专为 Cardboard 体验而设计)附带的光标实现封装了 raycaster 组件。

光线投射器完成所有交集工作。游标组件添加了额外的事件。

在master分支/0.3.0上,监听游标事件时,事件详情会包含完整的路口数据。

el.addEventListener('click', function (evt) { console.log(evt.detail.intersection); });

https://aframe.io/docs/master/components/cursor.html https://aframe.io/docs/master/components/raycaster.html