There are some limitations when using the Mesh Collider. Usually, two Mesh Colliders cannot collide with each other. All Mesh Colliders can collide with any primitive Collider. If your mesh is marked as Convex, then it can collide with other Mesh Colliders.
使用网格碰撞器有一些限制条件。通常,两个网格碰撞器之间不会发生碰撞。所有的网格碰撞器可以和任何原型碰撞器碰撞。如果网格标记为凸起的(Convex),那么就可以和其他网格碰撞器碰撞。
举个例子,这是一张模型枪(Mesh Collider),一个模型人物,一个Cube(Box Collider)gameObject.
首先我们要导入模型的网格Mesh文件,对于自定义的网格,我们需要在FBX文件的模型