- Home /
Non-convex MeshCollider with non-kinematic Rigidbody?
I usually don't get this error with primitive objects(cubes, spheres) but when I import my own object, this shows up:
Non-convex MeshCollider with non-kinematic Rigidbody is no longer supported in Unity 5.
Convex collider doesn't work for the object since "user-provided hull must have less than 256 vertices!"
Kinematic rigidbody doesn't work either because it no longer simulates physics. How do I make my own object to follow the laws of physics?
Answer by stanzy · Feb 21, 2017 at 10:35 AM
Use the NonConvexMeshCollider script to solve your problem:
http://www.productivity-boost.com/DownloadNonConvexMeshCollider.html
I implemented that by myself because I had the same problem.
Well, the original script was free. According to the original page It has been released under the $$anonymous$$IT license. Though the author added some additional statements which makes it incompatible with the $$anonymous$$IT license. The author has removed it from his page and re-published it again on the asset store. You might find some older projects which contains the old version, like this one I guess. Though since the licensing state is pretty unclear to me I would be careful. Keep in $$anonymous$$d that the script was a quite simple solution to generate box colliders which approximate the actual mesh. There are other solutions which split the mesh into several smaller convex chunks. Though most of them are paid solutions since this is not that trivial. What's suitable for your case you have to decide on your own.