Mesh Collider - merge meshes or not?
Hey,
I got the choise to merge mesh colliders. My question is, are there any performance differences when the meshes are merged?
A simplified example: I got two MeshColliders with different meshes (A & B) and no renderers attached. They are clearly seperated (see image below). I could merge both to have only one MeshCollider or I could just use two MeshColliders. Will one way or the other be faster? My guess is, that the seperate meshes can be culled more efficiently and therefore need less CPU time, however this needs a little bit more memory, since it requires two GameObjects (imagine this example scaled up by 10x or 50x). Is that true?
Don't most uses require them to be convex? If these were merged and made convex, they'd require a middle "tube" section to be added.
In most cases, you'd use sphere colliders for those, anyway. So it probably depends on why you need them to be mesh colliders.
Thanks for your answer. Sure, convex won't work for them, but in this case they don't have to be. I use sphere, box and capsule colliders where ever I can... but in several cases its not possible.
Anyway, this should not be about whether to use or not to use mesh colliders.
Your answer
Follow this Question
Related Questions
Centrifugal forces unity - confusing behaviour 0 Answers
Question on Physics.Simulate Behavior 0 Answers
Isolating physics of item attached to a moving rigid body 1 Answer
Static Collider.Move warning is still in place: should I add Rigidbody or not? (Unity 5.3.3f1) 0 Answers
Optimize mobile game with lot of Rigidbodies (Collisions) 0 Answers