little experiment from last week.
little experiment from last week.
I wanted to create a shape within the contour so I used delaunay triangulation. This returned all the triangles that build up the convex hull of the points. This was great but I only wanted the triangles inside the contour. Theo gave me a really great inside polygon test which solved this. I made sure …
I used box2d to create a shape out of the contour of the body. There are still some some bugs that I’m trying to work out. Initially the shapes were only colliding with the interior of the contour but simple reversing the points solved that. Some shapes are still being push through but I think …