3rd person camera - not going behind walls?

Hey, I got a question. How does one make a 3rd person camera that isn’t able to clip into walls, for example when the Player stands with its back close to one that the camera automatically rotates away from it, so it can’t see the backside of it. Any suggestions appreciated.

I was thinking about this too, I haven’t tested it but would putting a ridged body cube around the camera allow it to collide with the walls? They would need to be ridged bodies anyway so the character can’t walk though them.

translate this from c# to haxe?