Line Trace Question

I have vehicle that moves when the player character overlaps it, for now i calculated the distance by myself, set it as a variable and moved it via a timeline and a lerp. Its working but if i make it at another place it wont work because the distance is different. So i want to send a line trace from the location on the picture and if the line overlaps with a wall it will send the distance to the target location variable. I know how to do the overlap part but how can i send it from the point.


I made it throught adding a scene component to the last point of my actor and the rest is like this.