I am trying to perform simple Boolean subtraction on a mesh at runtime, however I am running into an issue where the vertices/triangles added to the original mesh are overlapping the cut out region. I set up an extremely simple example to show the problem.
All I am doing is a simple line trace and at that hit point I am appending a box that cuts through the main cube mesh.
As you can see here, there is a region that is now grey, instead of hollow.
If we look at the wireframe, we can see the problem. For some reason, that subtracted mesh region has a bunch of triangles overlapping the cut out regions. On top of that, it seems to be way overcomplicating the subtracted region vertices. There are 2-3x more vertices/triangles in there than I would expect.
So I don’t know what’s going on here. If anyone has any insight I’d appreciate the help.