Currently I'm trying to set up a third person camera, which I've done by having a Spatial node in the middle of my character and a Camera as a child with a script that rotates the Spatial node with mouse movements. Currently however the camera keeps clipping through objects and walls, which I don't want. Apparently ClippedCamera is what I'm supposed to use for this, but it doesn't really seem to work. When walking against a wall it collides with it a bit but then when walking too far the camera ends up going through the wall anyway. How am I supposed to solve this?
This is what the clipped camera looks like in the viewport
This is what the tree looks like
And this is what the properties of the Clipped Camera look like
I've also tried setting the margin to its maximum but that didn't help either.
Does anyone know how to stop the camera from clipping?