想实现两个物体的碰撞,使用手册说shape-interact添加这个属性后自动添加组件ShapeInteract,然后设置collide=true可以使其发生碰撞,请问这个组件要怎么用啊?
我现在是这样做的:
<xr-mesh node-id="cube1" mesh-shape shape-interact collide='true' cast-shadow geometry="cube" uniforms="u_baseColorMap: waifu" scale="0.5 0.5 0.5" position="0.2 0 0" ></xr-mesh>
<xr-mesh node-id="cube" mesh-shape shape-interact cast-shadow geometry="cube" uniforms="u_baseColorMap: waifu" scale="0.5 0.5 0.5" position="0.2 1 0" rigidbody></xr-mesh>
都添加了shape-interact属性,现在掉落会穿模。
我目前遇到两个物体不会发生碰撞,难搞,目前报错
Attribute:convex is set to false while `shape-interact` exists! MeshShape convex default to true.
有点懵