What engine are you using? We might be able to help you?
Thanks, I ended up using the standard vector calc with an x limit. Not the most mathematically correct but it did the trick.
Straight line distance vector
math.sqrt(((x1-x2)*(x1-x2)) + ((y1-y2)*(y1-y2)))
math.abs(x1-x2) for the x limit