I describe more details about my current situation.
I followed fruit ninja tutorial, and i could complete convex polygon cutting.
But I need cutting concave polygons, too.
Because box2d doesn’t support concave polygons and vertices’ count is limited as 8, so I divided concave polygon to several convex ones.
And then I get start and end position of line to be used in cutting.
At this point, which method or algorithm will be efficient for cutting total polygon and getting 2 sub polygons?
One polygon will be cut by a line and i must get 2 sub polygons as result.
Any thought or link will be appreciated…