12-17-2015, 06:53 PM
There's no easy way to achieve that (or I'm missing something). Getting distance between the two points is easy ((B.AbsolutePosition-A.AbsolutePosition).magnitude), but finding the exact point on the spline that keeps a certain straight distance must be done by bruteforce, I guess. Check distance, then move B a bit, check again...that might fail for some curvations, but it's an easy hack.
Perhaps someone else has a more clever approach...
Perhaps someone else has a more clever approach...