At the above image you can see a sample of my multiplayer game. Everything mostly works fine but sometimes when i’m removing blocks from my terrain I get these kind of malformed meshes. My terrain is split up into 16x16x16 parts so only the part that I have updated will have the weird effect on it. I have no idea where it can possibly come from.
Is this maybe a known bug or anything that I might have forgotten to take into account?
I can provide the code if needed, although it’s quite a lot…
Edit: This event doesn’t generate any errors or anything else. When I update the mesh again (through placing a block or removing one) the mesh shape is fine again.
Try to set face cull to off and see if it helps. If yes, then you are doing some of the triangles wrong way (clockwise versus counterclockwise). Probably your update routine is slightly different in this aspect from your creation routine, thus the error appearing only after the update.
I think that error is a result of some problem before. The MeshCollisionShape expects a properly set up mesh made from triangles. So this is actually another hint that your index/vertex data is messed up.
No you have to look at the lines where the mesh is assembled. It has nothing to do with physics, thats just when you recognize it for the first time because the malformed mesh is causing an exception in the physics collision detection.