in the latest commit a4bd2c47aa
of my project, i generate the voxel terrain chunk-wise with ArrayMesh instead of using GridMap like before, because it's much faster.
although the visual meshes generate correctly, the collision meshes are very incomplete, causing most blocks to be 'ghost blocks' that the player just falls through.
please look into the source code and help me find what causes this bug, because i'm not sure.
especially since the code to generate the visual mesh is basically the same as the code to generate the collision mesh, i don't understand why one fails and the other doesn't.
is it an Engine bug because Godot 4.0 is currently alpha 13?