I would like a third person controller with the camera following slightly behind, but if my player backs into a wall, the camera’s follow distance would shorten accordingly.
How is the best way to implement this? Should I put another CharacterController on the camera? Could I simply use the Raycast method of the Physics class?
It seems that this would be a common issue. Is there a thread that discusses this particular camera behavior?
I think raycasting in all directions around your camera, and changing it’s position acordingly is the best way to go. I will have to do a similar thing soon.