How to prevent camera from clipping through wall?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By bobbydickins

I have a camera set up (3D and in third person)

When I move backwards into a wall the camera clips through the wall. I want the camera to move closer to the player so that it doesn’t go through objects like that. How would I accomplish something like this?

:bust_in_silhouette: Reply From: Xian

Use ClippedCamera.
heres the link for the tutorial.