How to change default behavior of camera collision?

I am making a golf-style game where a camera follows around a ball. Currently, if I try to move the camera too close to the floor or a wall, the length of the spring arm I am using decreases. Is there any way that I can change this behavior to stop the camera when it collides with something instead of zooming in?

I actually don’t think that this is somehow predefined. I could be wrong though, as I never thought about this before.

I made a quick setup to implement something that would achieve this. It works pretty well actually apart from that you can’t slide over a surface as this completely blocks the rotation when you hit something (make sure walls etc have GenerateOverlapEvents set to true). It’s quick and dirty really, but maybe it helps.

Here’s what I came up with:

I really don’t know if there is anything already that does exactly this, it’d be interesting though.

Cheers :smiley: