Unity/PhysX Box vs Mesh Box

I’m in the condition that exporting pre-sized boxes from my modeling application would save me quite some work, if I don’t have to add boxes in Unity later on.

My question is: are the PhysX boxes MUCH more performant than a common box mesh?
Because if they are nothing else than a box mesh and their performance respect to an imported box mesh is nearly nothing more, then I’ll go with premade boxes in my modeling program, otherwise I’ll have to chose the more cumbersome workflow of adding them later in Unity…

A box collider is always more performant than a mesh collider, since even if the mesh is in the shape of a box, the physics engine doesn’t actually “know” that, and can’t apply any of the optimizations used for a box collider.

–Eric

So you confirm that the box collider is a special primitive for the PhysX engine and it’s performing much better than a mesh box?

Yes, it’s a special collider (which is why it exists as a separate component with parameters that are particular to it). I don’t know offhand how much better the performance is exactly, but you can test that easily enough.

–Eric

docs clearly state which colliders in which order are faster, try reading them before posting.

I read a lot of docs, this just slipped off my eyes evidently :wink:

Thank you Eric for your time!

Perfectly fine, I’m a grumpy old man anyway :slight_smile: