- Home /
Mesh collider performance ios
Hi. I am developing a game for ios and I have a question.
Wich alternative gives the best performance?
1: 1 mesh collider with 60 triangles. Or 2: 9 box colliders with a total of 108 triangles.
The model is part of the enviroment and will not be movable (kinematic).
I am aware that using 1 object instead of 9 and the triangles count itself are more efficient on the first option. But are there so much drawback of using mesh colliders instead of box colliders, so the second option is the way to go?
Answer by efge · Mar 24, 2011 at 09:25 PM
I think the difference between the collider types is not the poly count. The question is how many vectors do you need to describe the collider.
- 60 triangles with shared vertices ...
- 9 boxes a 3(?) vectors ...
(And as you already mentioned primitive colliders are much more robust in physics calculations.)
Answer by Eric5h5 · Mar 24, 2011 at 09:13 PM
Make a test, run it on the device, and see what the profiler says. Box colliders don't use triangles, they're just boxes, which is why the performance is better. I would guess 9 box colliders is faster, but you're going to have to see for yourself.
Your answer
Follow this Question
Related Questions
Mesh collider cost 1 Answer
Touch not working 1 Answer
collision between a rigidbody and a mesh collider not working 1 Answer
Animating a box collider does not animate the mesh renderer. 1 Answer
How to rotate a mesh collider? 0 Answers