11-14-2019, 09:48 AM
Hello,
Thanks for the reply, Aka. I'm posting a small follow-up in case anyone else needs this.
The solution is:
TL;DR convert from absolute distance to percentage
Have a nice day
Thanks for the reply, Aka. I'm posting a small follow-up in case anyone else needs this.
The solution is:
Code:
float positionOnSegment;
CurvySplineSegment segment = Spline.DistanceToSegment(SplineController.AbsolutePosition, out positionOnSegment);
float percentageOnSegment = positionOnSegment/ segment.Length;
Have a nice day