I am trying to get make a 3rd person system where the player can not look through walls/objects.
I want the camera to zoom into the player when the player backs up against a wall/object.
I am unsure of where to even begin. What is a method that could be used for this?
raycast from the player head to the position of your camera and if it hits a wall then zoom the camera in until it no longer hits a wall (in a renderstepped loop)