Changing sphere trace radius over distance?

I have the same problem, have you found a solution?