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
Question Setting instantiated object to spline, then starting movement? _RicO 3 6 06-28-2023, 06:01 PM
Last Post: _Aka_
Information Extending the ConnectedControlPointsSelector, based on Player provided input EverknightDev 1 13 04-03-2023, 10:44 PM
Last Post: _Aka_
  Volume Mesh bug based on whether input spline is closed GameJazz 2 10 12-15-2022, 08:32 AM
Last Post: GameJazz
  Conform function, but applied to different directions at the same time Hartigan27 1 10 02-19-2022, 05:09 PM
Last Post: _Aka_

Forum Jump: