Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Distance travelled across multiple splines
#1
Hi there,

I have a car that travels over multiple connected splines, I'm trying to work out how to keep track of the total distance the car has travelled.

Guessing that I need to keep a tally of distance travelled each frame but that's where I'm stuck.

Thank you (again) for any help.

John
Reply
#2
Hi
I am assuming you use a SplineController.
SplineController.Distance gives you the distance of your object from the start of the spline. You can use that.
I hope this helped.
Please consider leaving a review for Curvy, this helps immensely. Thank you.
Available for freelance work—feel free to reach out.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Updated package in 2022 LTS resulted in multiple errors scr33ner 1 0 01-11-2025, 01:26 PM
Last Post: scr33ner
Information New free asset: Converter For Dreamteck Splines _Aka_ 0 0 07-19-2024, 08:27 PM
Last Post: _Aka_
Information New free asset: Converter For Unity Splines _Aka_ 20 61 07-19-2024, 05:15 PM
Last Post: _Aka_
  Invisible Gizmos In Latest Curvy Splines orrenravid1 1 5 06-11-2024, 07:36 AM
Last Post: _Aka_

Forum Jump: