Question about test collision in third person

I’m making a third person game with a camera similar to the one in the Batman Arkham games. For this I’m using “Do collision test” in my camera spring arm to avoid things making in they way of the camera.

However, when I get too close to a wall the camera will ‘enter’ my character and avoid the wall thanks to the collisions. I know this is how it’s supose to be, but I would like the camera won’t enter my character but also don’t go through the wall.

Any ideas?