Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Time based movement
#1
In the tutorial video describing the differences between Absolute and Relative movement using the SplineController, it's mentioned that there's a 3rd way to control motion with time, and that there are dedicated functions to do that. Could you please point out those api functions? As a new user, I'm having trouble finding them or the documentation of how to implement time-based movement, which is the approach I'd like to use.

Thanks!
Reply
#2
Hi,
I don't see which part of the tutorials you are refering to, but I guess the referenced API methods are CurvySpline's interpolation methods. You can use these methods to compute a moving object's position on a spline without using a SplineController.
What part of the tutorials were you referring to?
Please consider leaving a review for Curvy. This will help a lot keeping Curvy relevant in the eyes of the Asset Store algorithm.
Reply
#3
Those interpolation methods are probably what I need. Thanks for pointing them out. The reference was at the 2:30 mark in Tutorial #2. On rewatching, it refers to functions about using spline distance rather than time, which I guess is all I need.

The reason I'm asking is I will need precise control over WHEN a gameobject traveling along a spline arrives at a specific point of that spline. So I will be working backwards to determine the speed, unless there's already a function or controller that does that.

Thanks!
Reply
#4
(07-17-2018, 10:55 PM)Livealot Wrote: Those interpolation methods are probably what I need. Thanks for pointing them out. The reference was at the 2:30 mark in Tutorial #2. On rewatching, it refers to functions about using spline distance rather than time, which I guess is all I need.

The reason I'm asking is I will need precise control over WHEN a gameobject traveling along a spline arrives at a specific point of that spline. So I will be working backwards to determine the speed, unless there's already a function or controller that does that.

Thanks!

You can either use the InterpolateByDistance method, or use a Spline Controller only to set it's Absolute Position, instead of setting its speed, which is a bit overkill.
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
  Wrong movement between splines Sergei543071 3 205 07-30-2018, 12:17 AM
Last Post: _Aka_
  Movement speed mythstified 3 534 06-01-2018, 03:37 PM
Last Post: _Aka_
  Calculate total time for spline to complete GenericJoe 1 288 05-29-2018, 01:23 PM
Last Post: _Aka_
  Can I change splines at run-time? DeltaMike1010 3 752 01-29-2018, 12:32 PM
Last Post: _Aka_

Forum Jump: