我正在AFrame上使用AR.js。我无法使点击互动生效。我不清楚raycaster和游标等。这是我的代码块: 9:15
<a-scene
vr-mode-ui="enabled: false;" renderer="logarithmicDepthBuffer: true;" embedded
arjs="trackingMethod: best; sourceType: webcam; debugUIEnabled: false;" >
<a-nft
type="nft"
url="assets/target/exelixis-target2"
smooth="true" smoothCount="10" smoothTolerance=".01" smoothThreshold="5"
>
<a-entity position="80 -220 -170" #holder >
<a-entity ligand class="clickable"
scale="50 50 50" rotation="-90 0 0" position="0 0 120"
gltf-model="assets/AXL2.gltf"
animation__click="property: scale; to: .001 .001 .001; dur: 5000; startEvents: click;"
></a-entity>
</a-entity>
</a-nft>
<a-entity camera cursor="rayOrigin: mouse"
raycaster="showLine: true; objects: .clickable; far: 1000" line="color: orange; opacity:0.5">
</a-entity>
</a-scene>
9:16 我的问题是:光线投射器是否应该在相机实体上?我需要光标属性吗? a-nft是否会引起问题?我该怎么做才能使a实体标记的配体可触发动画?