Hi, I have been struggling with a problem, basically, when I move the camera in my FPS game and the camera is close to a wall, the gun goes through it. I tried adding a collider but It makes the movement worse, how can I fix it?
Oftentimes FPS games use a separate camera to render the gun and the player’s hands after rendering everything else to ensure the gun is always shown “on top”. Another option is a custom shader which has a higher or lower render queue value (I forget which) which causes it to be drawn last.
1 Like