Symmetrical Arena with Curved corners by

Godot Version

4.4

Question

I’m working on a top down, 2D, hokey-like game. So far I’ve built my arena with 4 rectangles. However, I want my arenas to have round corners. I also want symmetry on the arena.

In something like inkscape this would be trivial: I would create a solid rectangle, then a smaller rectangle with round corners, then I would subtract one from the other.

In Godot I’m not sure how to get that result. I could draw all polygons by hand and curve the ones I wanted, but I’ll struggle to get a neat result, and something tells me there must be a better way.

Can someone advise on this?

Create a polygonal collider for the rounded corner and use a box collider for the straight part. Assemble the whole thing from 4 straight sides and 4 corners.

Thanks for the reply. Can you point me to how can I align all of this? I couldn’t find a way to align objects or to snap them.

I think it’d be best to do it via a script. That way you can calculate and numerically set the exact positions given the wanted dimensions and wanted corner radius.