Is there a way to perform boolean operations on a Polygon2d?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Turnovus

I’m trying to make a game in which the player can define areas, represented by polygons, by clicking and dragging to form rectangles. A good comparison is a zone from a management game.

Is there a way to easily add/subtract polygons?

:bust_in_silhouette: Reply From: Calinou

Support for boolean operations on 2D polygons was merged in the master branch in May 2019. It will be available in 3.2 :slight_smile: