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
  Conform function, but applied to different directions at the same time Hartigan27 1 8 02-19-2022, 05:09 PM
Last Post: _Aka_
  Using scripting to generate meshes over time croner1907 5 23 02-11-2022, 10:17 PM
Last Post: _Aka_
  Create spline at run time AnAppGames 2 834 04-20-2021, 07:14 PM
Last Post: _Aka_
  Updating old movement code Maltakreuz 3 2,341 08-18-2020, 04:49 PM
Last Post: _Aka_

Forum Jump: