Boolean operations on PolygonColliders

Hello everybody :smiley:

The title pretty much says it all.

Is there a way to use boolean operations on Polygoncolliders2D or do you know any algorithms for this in general.

I need:

A and B

A but not B

intersetcion of A and B

(A and B beeing colliders or polygons, of course)

I have been working on this for half a year now and i cant figure it out. The internet is also quite scarce with rescources on this.

So… do you have an idea? :smiley:

To anyone also struggeling with this problem:

I have now resided to just use the openscource “clipper” library. It does all you want with pretty much no errors.

So just download that and implement it into your project. Honestly I cant be bothered to write my own algorithms if there is already one out there :stuck_out_tongue:

Good luck folks