RandyGaul / cute_headers

Collection of cross-platform one-file C/C++ libraries with no dependencies, primarily used for games
4.24k stars 264 forks source link

Is there concave polygon support in tinyc2? #317

Closed Thomas-de-Bock closed 2 years ago

RandyGaul commented 2 years ago

No concave support because there aren't simple and good algorithms for concave shapes. Instead I suggest changing the design of your game so you don't need concave shapes, or try using another tool to convert concave shapes to a decomposition of convex shapes. There are lots of algorithms to do this out there. Try searching for "2d convex decomposition".

Thomas-de-Bock commented 2 years ago

Ah yes I read about that, I struggled to find a good library with an implementation of this as concave shapes are crucial for my project, but I'll keep looking, thanks!

RandyGaul commented 1 year ago

Let us know if you find a good one!