Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to get travelled distance and distance to travel
#2
Hi

Use CurvySpline.GetNearestTF to get the TF of the nearest point on the spline. (see the documentation to learn more about its parameters).
Then use CurvySpline.TFToDistance to convert that TF to a distance. Let's call it D.
The traveled distance on the spline is equal to D.
The distance left to travel on the spline is equal to : CurvySpline.Length - D.
Here is a link to the API reference of the CurvySpline class: https://api.curvyeditor.com/FluffyUnderw...pline.html

I hope this helped.
Have a nice day.
Available for freelance work, feel free to reach out: toolbuddy.net
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Reply


Messages In This Thread
RE: How to get travelled distance and distance to travel - by _Aka_ - 11-13-2023, 08:45 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Getting Distance from a World Point zorksox 3 2,314 04-16-2024, 07:30 PM
Last Post: _Aka_
Question Volume Spots inter group distance Sacryn 1 1,594 02-27-2024, 04:08 PM
Last Post: _Aka_
  Distance travelled across multiple splines jh092 1 1,587 02-23-2024, 09:44 AM
Last Post: _Aka_
  Absolute distance along spline for Shape Extrusion Module amutp 3 2,549 10-31-2021, 10:26 AM
Last Post: _Aka_

Forum Jump: