原来我的场景中有一个平面Plane带Mesh Collider碰撞器组件,一个主角Hero带有一个Box Collider碰撞器和有重力的Rigidbody刚体组件,主角可以放在平面上. 在导入场景后,隐藏平面Plane,给一个地板添加一个Mesh Collider碰撞器,把主角放地板上,结果主角居然直接穿透过去,很奇怪. 然后我先隐藏平面Plane,再导入场景,再给一个地板添加一个Mesh Collider碰撞器,把主角放地板上,结果主角可以放在上面. 在官方文档中看到这段话: There a
关闭mesh Renderer以便查看mesh Collider "For Unity 5, we must also select "Convex" on the Mesh Collider, in order for the Mesh Collider to work correctly with the updated Physics Engine." 如果不勾选Convex,能运行,但console下会出错误提示: “Non-convex MeshColli
Primitive and Placeholder Objects 原始的基础物体 Unity can work with 3D models of any shape that can be created with modelling software. However, there are also a number of primitive object types that can be created directly within Unity, namely the Cube, S