In the game I’m making walls have been working fine for a long time, but then I had to scale the whole scene when I realized the player was too small, making it hard for raycasts to detect him.
Now that the scene is twice as big with all object moved to look like before, everything is baked to update the environment etc. there is one difference from before: The walls sometimes turn invisible.
This seems to depend on the player’s position and where the camera is looking. The player can stand in place and look around, seeing walls disappearing and reappearing as he does. He can also walk around and see the same thing happening when not moving the camera.
I can’t offer any more details since I have no idea what causes the issue. Does anyone know what’s wrong and how to fix it?