MeshCollider inflated collision not working properly
I'm trying to make a MeshCollider trigger an "OnTriggerEnter" event with another similar MeshCollider. This is only used in the editor to generate prefabs, so this isn't a performance issue since they're not used in runtime.
However, even though my meshes collide using inflate, the OnTriggerEnter is not called. Furthermore, only some meshes collide, and others don't, using the same method. Below is a screenshot of 3 inflated meshes:
A and B don't collide;
A and C collide;
B and C collide.
To clarify (and maybe this is the mistake altough I've made several tests): each object has 2 Mesh Colliders, one is a trigger and the other one isn't. It's exactly the same mesh. All the objects have rigidbodies attached to them as well and all the mesh colliders are convex. Right now the inflation is at the maximum value for test purposes, since I wanted to see how much it would take until they collide.
Another note is that, if I move A or B slightly closer to one another, they actually detect a collision, which is even stranger. Maybe the mesh collider isn't getting updated internally after the inflation, even though it is shown otherwise in the editor?
I'm using Unity 5.5.1p3
Your answer
![](https://koobas.hobune.stream/wayback/20220612112148im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Triggers Colliding With Triggers Not Working? [Solved] 1 Answer
MeshCollider cookConvexMesh: user-provided convex mesh descriptor is invalid! 1 Answer
Fbx character model with animation, hot to attach colliders? 2 Answers
I can see the outline of my objects but there invisible? 2 Answers
Mesh collider not matching mesh 0 Answers