I’ve been trying to solve this myself for a long time, but it doesn’t work. The problem is in the camera, it goes through objects. I attached it to the character’s (head) with (Spring_Arm). I use 1 camera, only change the length in (Spring_Arm) to set the view to first or third person. He helps, moves the camera closer if I hit an object in third person mode. But as soon as I use the first person camera, it goes through the objects. Perhaps the problem is in the animations that I use, the head can exit the character’s collision and pass through the object along with the camera.
PS. Translated via google translator