- Home /
How to prevent a object (attached to the main camera) sticking into a wall?
When I attach an object (weapon for example) to the main camera and I walk against a wall, the object sticks into the wall.
Is there any way to prevent this?
Comment
A common approach is use two cameras and layers. One camera renders the scene and another camera renders the first-person objects (like a weapon) after clearing the depth buffer only