【发布时间】:2022-12-14 11:27:26
【问题描述】:
我在 A 型框架中创建一个场景,物理系统由弹药驱动程序提供。我正在尝试导入一个模型 3D(在 Blender 中创建),它有自己的网格碰撞(没有像盒子或球体这样的基本图元),但这可能吗?如果是,我该怎么做?如果不是,您知道另一个有效的建模程序吗?我正在尝试使用 Blender,但我不知道我是在创建网格还是在导入时失败了。
现在我使用的弹药形状是一个盒子,但其他选项(船体、hacd..)不起作用。
<a-assets>
<a-asset-item id="car" src="assets/car.gltf"></a-asset-item>
</a-assets>
<a-entity position="0 0 -10" gltf-model="#car" rotation="0 90 0"
ammo-body="type: dynamic;
emitCollisionEvents: true;"
ammo-shape="type: box;fit: manual; halfExtents: 1.5 2 3.7; offset: 0 0 -0.3"
></a-entity>
【问题讨论】:
标签: blender collision aframe mesh ammo.js