- Home /
The question is answered, right answer was accepted
Collision is glitchy
I am creating a flight sim.
I've created my mesh collider, an error bumped up saying that the vertex is over 60k. So, I've decided to convex it, which works pretty well in some cases.
When my plane collide with the tag "Ground" everything works well, explosion and etc. However, when my plane collide with the tag "Water" nothing happens, what's making it stranger that whenever I decide to convex the water mesh, it does collide. Any solution? is it a glitch or something?
Answer by whydoidoit · Jul 09, 2012 at 07:50 PM
Mesh colliders are expensive and are subject to back face culling - so you won't get collisions in certain circumstances dependent on the camera position. The best idea is to make rough primitive colliders and attach them to your mesh, this will work a lot more quickly and will not have the back face issue.
I see, thanks. Now I have a different question, I did try to create several colliders (for wings, body and tail), However, how can I add one script that will check the collision on each of them? And they are all children of an empty object which I named collision.