The mesh is a minecraft-style map made up of a lot of voxels. It takes 3~4 seconds to load without collision and makes my phone lag a bit. When I add the collision component, the game simply freezes.
Is there a way to add collision data to the file itself so I don’t have to do it at runtime. Also is there a better way to optimize it?
Thanks.
I had a chance to look at this, the issue is that the dynamic rigidbody is a mesh which is very expensive. I recommend using compound collision primitive shapes instead.