0 votes

https://docs.godotengine.org/en/latest/tutorials/physics/collision_shapes_2d.html#performance-caveats states that

When using a single non-transformed collision shape in a StaticBody, the engine's broad phase algorithm can discard inactive PhysicsBodies. The narrow phase will then only have to take into account the active bodies' shapes. If a StaticBody has many collision shapes, the broad phase will fail. The narrow phase, which is slower, must then perform a collision check against each shape.

From this it is fairly clear that what the problem is when you have multiple collision shapes. However, the wording of the first sentence seems to imply that there is also some kind of performance issue with single transformed collision shapes.

So my question is, what happens in terms of broad and narrow phase checks when I have a StaticBody with a single transformed collision shape? Will the performance be worse compared to transforming the StaticBody in the same way instead of the collision shape, and if so, why?

Godot version 4.0 beta 16
in Engine by (15 points)

Please log in or register to answer this question.

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.