Alternative 3rd person camera clipping walls solution

I was playing about with 3rd person camera clipping systems today.

(shaggy smile - a rather lovely auto game name i think. Sounds like an early nineties indie band)
This is the best that i came up with during my experiments. Yes I did try the system in this thread…TPCamera Boom in 3D: Avoiding Obstacles [SOLVED]
but i wanted just 1 raycast and not every frame and another one to check if it can move back again and to use lerp to try and get it smooth. I did try using a hidden collision object too but went back to raycasts.
I hide the player when too close so that it goes 1st person.
Note - the raycast didn’t work on the floor (is it too large?) and so there’s an ‘is on floor’ and z offset less than -10 check …which yes, does count as a bodge.
If you think this is pointless and pants. ok then, but I do rather enjoy creating things that are pointless and pants.