One StaticBody with many MeshInstances or many StaticBody with one MeshInstance?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By peterhoglund

I’m dividing my ground mesh into several smaller meshes for performance. Is it better to do one StaticBody with many MeshInstances and colliders as children or have several StaticBody nodes with only one MeshInstance and collider as children? Or does this not matter?

:bust_in_silhouette: Reply From: theMX89

it depends, if your world/plattform is big you rather would use a multipal staticbodys, if the world/plattform is small i recommend using only one staticbody

sry, im not a nativ, my english is terrible xD

:bust_in_silhouette: Reply From: umma

use one static body with many mesh instances and colliders as children, I think this will be better because only
the colliders affect performance. And as you said they are children of the mesh, which means if the mesh is not visible they aren’t either.