Suggestion how to FIX meshing:
The last couple hours i thought about how i would try to fix the mesh problem. here is my suggestion:
1. i would try to solve that issue with raycasts. everytime the client is loading in enemy structures like "turrets" or "generators" a process should be triggered.
2. aslong the enemy strucutres is loaded the process should be repeated every 20 seconds.
3. the process should be randomly triggered every 5 mins or so to prevent player building inside the mesh.
Process:
1. Shoot raycast in every direction from the current origin player position.
2. Every raycast should be shoot like 20 meters or until it hits a normal from the mesh.
3. After its hits or hits not save the length of the raycast.
4. Now shoot a raycast back to the player from the postiton there the first raycast stopped.
5. If it hits NOT the origin position of the player or have a different length, then the raycast hits normal of the mesh.
6. That means that the player was INSIDE a mesh. because raycast (like turret shoots) goes throw the mesh, but not BACK in.