Make a camera collision

I have read that adding rigid bodies and a sphere collision for the camera, but i did and it just rotates seemingly random and/or moves to the wrong angle and my character’s head is backwards. All i want to do is make is so the camera moves through the walls.

You cannot add rigid body to camera that is why it rorates sensesly.Instead create a new Game object and attach a box collider to it then make the camera a parent of that game object. Is this what you are trying to do?