Hey.
Playing around a bit with box2d and came to the idea of seeing if i can make some sort of physics object creation method similar to crayon physics. Where the user can draw shapes into the world with the mouse.
Problem is that then i need to allow concave shapes (because i cant expect the user to only draw convex shapes)

On the wiki it simply says it is not allowed.
So how would you guys do it?..
Is the only solution to break the drawn shape into smaller ones untill only convex shapes exist?
If so how would such an algorithm look, what are the steps involved?
pseudocode would be great 😉
Playing around a bit with box2d and came to the idea of seeing if i can make some sort of physics object creation method similar to crayon physics. Where the user can draw shapes into the world with the mouse.
Problem is that then i need to allow concave shapes (because i cant expect the user to only draw convex shapes)

On the wiki it simply says it is not allowed.
So how would you guys do it?..
Is the only solution to break the drawn shape into smaller ones untill only convex shapes exist?
If so how would such an algorithm look, what are the steps involved?
pseudocode would be great 😉