首页 > 解决方案 > Aframe 超级手组件:不会被禁用

问题描述

我正在测试super-hands组件(https://github.com/wmurphyrd/aframe-super-hands-component)以移动对象。同样,我正在设置grabbable手势组件。我注意到的是,一旦我移动了对象,我就无法“摆脱”移动的即。它继续处于可抢夺的状态。代码很简单

<a-box ... grabbable></a-box> .. <a-entity raycaster="objects: .clickable" cursor="rayOrigin:mouse" super-hands="colliderEvent: raycaster-intersection; colliderEventProperty: els; colliderEndEvent: raycaster-intersection-cleared; colliderEndEventProperty: el"></a-entity>

是否需要设置一些东西来禁用可抓取状态?

标签: aframeaframe-super-hands

解决方案


推荐阅读