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
  Mesh Generation between two splines vatan 4 190 02-14-2025, 07:11 AM
Last Post: vatan
  Updated package in 2022 LTS resulted in multiple errors scr33ner 2 102 01-13-2025, 09:32 AM
Last Post: _Aka_
Information New free asset: Converter For Dreamteck Splines _Aka_ 0 32 07-19-2024, 08:27 PM
Last Post: _Aka_
Information New free asset: Converter For Unity Splines _Aka_ 20 393 07-19-2024, 05:15 PM
Last Post: _Aka_

Forum Jump: