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
  Creating a threaded pole along a spline? spedepasanen 1 9 Yesterday, 12:25 PM
Last Post: _Aka_
  Generate Spline and Segments dynamically with a script?? mythstified 3 54 08-10-2018, 12:43 PM
Last Post: _Aka_
  Instantiating Prefab on the spline for infinite track hjk27 3 85 08-02-2018, 12:51 PM
Last Post: _Aka_
  Spline Controller Animate - Don't understand the Speed and TimeScale properties GenericJoe 12 966 07-20-2018, 09:02 PM
Last Post: GenericJoe

Forum Jump: