Merging 2d Polygons

BlitzMax Forums/BlitzMax Programming/Merging 2d Polygons

Duckstab[o](Posted 2011) [#1]
Im using Box2d in my current Game

In any single level there could be hundreds if not more static collision shapes

I use Boxes rotated to form the no go areas in the game

I was wondering if there is any code around for merging Boxes and coverting into a smaller amount of triangles ?


Tommo(Posted 2011) [#2]
You can put all static shapes into only one body.
And I doubt merging boxes into polygons can help improve performance that much.