I'm building a 3D voxel game. There voxels are implemented in a way that only the faces that are visible are added to the
Mesh in the
MeshInstance. The problem comes when you place or destroy a voxel, then the faces of the adjacent voxels must change: a face must be added or removed. How can I edit the initial
Mesh is generated through
My alternative idea, if it is not possible to edit the
Mesh, is to destroy the
Mesh and create a new one with the modification, but this might be less efficent.