Camera problems

So i have a follow camera script attached to my main camera that follows the player around the level but when the camera turns with the character, the camera goes through the walls, floor, and other objects blocking the view of the character. I have tried adding different colliders (mesh, box, sphere, etc) and even tried adding a rigid body to it but it still goes through walls! Thoughts?

In general, if you’re scripting the transform (as with many of the default camera scripts), then you’ll need to deal with collisions manually.

Otherwise, you might try using a physics based camera. This means that your camera scripting needs to be using the Physics class as well, otherwise, it using the Transform class, your camera more or less ignores the physics (even with a Rigidbody component)

Some Physic camera scripts here, to start;

Thanks, I’ll take a look