I would like to know if a) splitting meshes (+ collider) at runtime is possible and b) if its doable while maintaining a reasonable framerate. Note that I would be splitting Unitys normal cubes. So just 24 (?) Vertices? I would just split it into 5-10 parts.
(The ultimate goal is of course to blow the mesh up )
there is piecemaker and another package whose name i forgot in the assetstore. this is rather complicated topic as you need to insert vertices, maintain the correct index order to work with culling and care about uv coordinates.
I think that Obatztrara is right, a cube has 24 vertices (because different faces of the cube can not share the same normals to appear âhard edgedâ and even if in the modeling soft, this is 8, Unity importer splits it into 24).
You need to tesselate your mesh, and once youâre done with this, you can split it.
I would work on a triangle basis. Iterate through my triangles, and for each, generate 2 (and interpolate vertices, uvs, normalsâŚ) and fill a new mesh.