Allow Concave Collisions

App-Objects
When I’m editing an object’s hit box, a warning often pops up saying that the hit box has to be convex. I know what convex means, but its SO limiting having restrained collisions. I ask that you could add support for non Convex collisions.
For those who don’t know what convex collisions are, here’s something explaining it.
image

Please? :pleading_face::point_right::point_left:
hehe lol

From what I’ve seen in the past, it is very unlikely.

That said, as far as I can find there are no 2D engines that support concave collision masks.

Main reasons appear to be that it is extremely mathematically complex and performance impacting even for a simple curve.

The closest might be polygon decomposition support? That’s where you click a button and the IDE cuts up your convex polygon into dozens of concave polygons to form the same shape.

I think godot does…?

From what I can see; It doesn’t seem so, or at least not for most objects according to their own documentation. Collision shapes (2D) — Godot Engine (stable) documentation in English

They only seem to support concave shapes for 3D objects or static (nonmoving) physics bodies, not character or other objects. For both scenarios where they do support it, they also have warnings all over those sections about concave collisions being very slow and inaccurate.

It also seems in most cases they do what I mention above, taking concave shapes and decompose them into convex shapes.

2 Likes