Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Calculate total time for spline to complete
#1
Hi, I need to determine the total time (across all segments from start to end) it will take to traverse a spline, from a SplineController. I know the speed, so unless there is another way I guess I need the total distance to calculate it myself with time = dist / speed ?
Reply
#2
Hi,
Yes, you will need to compute it. The total distance is either 1 if your controller has a Move Mode of "Relative", or CurvySpline.Length if your Move Mode is "Absolute"
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Deform mesh on the spline Nico_CL 3 90 10-09-2019, 04:10 PM
Last Post: _Aka_
  Best practice for mass-object instancing along 100km spline (railways) plus streaming bs@vectorvision.de 10 493 09-24-2019, 03:42 PM
Last Post: _Aka_
  Invert the spline points ? UsernameHed 1 91 09-21-2019, 03:22 PM
Last Post: _Aka_
  How to spawn GameObjects on corners of the liinear spline? Pixel Flipper 7 286 09-18-2019, 07:03 PM
Last Post: _Aka_

Forum Jump: