Hello, is there way in arcade physics to check intersection/overlay of two polygon (Phaser.Geom.Polygon)? Probably there is way to calculate it mannualy, but I thing if there is already any function in Phaser for that purpose?
What I have found is only Phaser.Geom.Intersect class, but it have no function to check interect of two polygons (only rectangles, triangles and so on…)
Polygon intersection is not straight-forward, so Phaser doesn’t offer anything built-in. Check out an external library like SAT.js.
1 Like