Ledge detection in 4.22

I have code to detect ledges that works correctly in 4.20 and 4.21. It stopped working 4.22, but does not show any errors. Here is an image of the section of code that is not properly doing a trace.

You could start off by turning the debug lines on and see what you you are getting. ?

I know that sphere traces are fundamentally broken in 4.22

try offsetting the trace by like 0.1
‚Äč‚Äčthis fixes the sphere trace. It seems in 4.22 start location and target can not be the same.