I am currently working on a project similar to The floor is Jelly game.
Here is a .gif of the current stage for reference
http://imgur.com/a/xdkyqMy issue is that SFML does not support filling in of these shape (concave).
I have tried Thor library for concave shapes but it seems to have more issues with it than worth going much further with. These issues being:
1. If I add a point to a thor::concaveShape with the index of 0, the project errors on build.
2. With issue one this means the first point is always 0,0 so this a clear issue.
3. While the mesh deforms if parts of the mesh overlap the shape vanishes until the mesh stops overlapping then it draws again.
4. My points are made up of spline points. So in that .gif it has around 300 points and it seems to just crash with that many point regardless. (I have tested will less points and this does not happen).
I have tried using thor::TriangulatePolygon but it just errors on build every time, maybe I am using it wrong but the documentation doesn't make too much sense to me.
I am at a loss and it seems I might have to start from scratch with a new library as this is for my course work and I don't have the time to fix problems that seem to be on the library side.
Any way I can fill this in with colour or is SFML/Thor just not designed for this? If soo anyone know a good C++ library for this stuff?