Can you create irregular polygons for collision masks?

Is there a way to create a collision mask that has indents?

Each collision mask has to be a convex polygon (any number of vertices), but you can have multiple collision masks, so you can simulate any complex shape (even concave ones) :wink:
You can’t do it:

But you can do it:

:exclamation: Take into account that increasing the number of vertices and collision masks reduce the performace per collision test, specially in HTML5, but I have never tested it though…

Ah okay, great. Does it matter if they overlap? (trying to minimize potential missed collisions).

No, GD doesn’t check overlaps with the object itself :slight_smile: