+1 vote

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?

Godot version 3.4
in Engine by (57 points)

2 Answers

0 votes

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

by (223 points)
0 votes

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.

by (447 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.