【Unity3D】关于MeshCollider的一些报错整理

 Non-convex MeshCollider with non-kinematic Rigidbody is no longer supported in Unity 5.
If you want to use a non-convex mesh either make the Rigidbody kinematic or remove the Rigidbody component. Scene hierarchy path "Cube", Mesh asset path "" Mesh name ""

Rigidbody组件没有勾选上,且MeshCollider组件没有勾选上导致。

报错意思是在Unity5时就已经不支持,非运动学的刚体有非Convex的碰撞体。

解决方法:1、勾选上Convex 2、勾选上Is Kinematic

我选择勾选Convex会报错。(因我还需要物体受到力)

[Physics.PhysX] Cooking::cookConvexMesh: user-provided hull must have less than 256 vertices!

[Physics.PhysX] ConvexHullBuilder: convex hull has more than 255 polygons!
UnityEngine.MeshCollider:set_convex(Boolean)

意思是Convex勾选上后只支持小于256个顶点和最多255个三角面(polygons多边形?)

解决方法:https://blog.csdn.net/WUYIDUER/article/details/80951147

这方法确实可以,但是还是有报错在Unity2017版本,不过问题基本解决,没有什么异常。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章