0 votes

I am making a top-down 2D game (my first Godot game - loving it so far). Currently, I am using RectangleShape2Ds under CollisionShape2Ds to define the edges of areas. The edges of areas can be covered by these, but since areas are not just rectangles some areas have a dozen or so RectangleShape2Ds to get every edge.

I saw (but have not used) there is a CollisionPolygon2D. If it is possible to draw out the edges with just one CollisionPolygon2D, would that be better performance than the rectangles, or does the engine internally process these into essentially the same thing?

Godot version 3.3.3.stable
in Engine by (12 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 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 webmaster@godotengine.org with your username.