Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Monotonically increasing segment F
#3
Hello,

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;
TL;DR convert from absolute distance to percentage

Have a nice day
Reply


Messages In This Thread
Monotonically increasing segment F - by hnngaf - 10-07-2019, 12:42 PM
RE: Monotonically increasing segment F - by _Aka_ - 10-09-2019, 03:00 PM
RE: Monotonically increasing segment F - by hnngaf - 11-14-2019, 09:48 AM
RE: Monotonically increasing segment F - by _Aka_ - 11-14-2019, 11:22 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  snap to the curve created by the curvy splines segment points ShiroeYamamoto 3 11 04-02-2024, 02:24 PM
Last Post: _Aka_
  Is there a way to extrude a bit past a spline segment? Lupos 1 6 05-09-2023, 09:55 AM
Last Post: _Aka_
  How can I remove one segment of the road that I made by spline? Chanon 3 7 09-14-2022, 04:44 PM
Last Post: _Aka_
  How to get Split Length to match spline segment length? dromo 4 28 07-21-2022, 10:04 PM
Last Post: _Aka_

Forum Jump: