I’m making a 3rd person shooter (using a 1st person controller) and I want to know how to make my camera not go through objects with colliders, but instead have the camera stay in place (Every Over The Shoulder game has this if you back up into a wall or something, in case you need an example.
Check this asset out
http://thoughtvandal.com/index/?page_id=8
You can put the camera inside an empty game object, and give it a rigidbody/collider. You can also play with the camera settings which have an option that might fit this problem.