AFrame物理:使碰撞网格与动画gltf模型一起移动

时间:2020-10-14 18:23:21

标签: javascript game-physics aframe

我正在尝试捕捉动态球体和静态gltf模型之间的碰撞事件。

<a-gltf-model src="#bird" 
                    position="0 0 -10"
                    animation-mixer
                    scale="0.05 0.05 0.05"
                    body="type:static; shape:none"
                    shape__main="shape: box; offset: 0 100 0; halfExtents: 20 40 20"
                    shape__right-wing="shape: box; offset: 40 95 0; halfExtents: 20 10 10"
                    shape__left-wing="shape: box; offset: -40 95 0; halfExtents: 20 10 10"></a-gltf-model>

我在模型周围创建了一个网格,但问题是该模型已设置动画,并且我希望该网格在动画圈内随模型一起移动。可能吗? 我创建的场景的链接:https://glitch.com/edit/#!/tide-therapeutic-prince

0 个答案:

没有答案
相关问题