【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版本,不過問題基本解決,沒有什麼異常。

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