I want to create a plugin which shatters/fractures meshes, so I can make every object destructible if I want to. Like in Unreal's built-in feature.
My quick approach to this problem is randomly generating cuts (planes):
every cut divides the mesh into 2 groups: left side of the cut and right side of the cut,
at the points where it intersects the mesh, I add vertices to both groups.
and add 1-1 face to each group with these new vertices.
create the new mesh.
Is there a better way? What do you recommend? Is my way even possible? If yes, what API methods should I use?