Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Move with constant velocity in Relative mode
#1
Hi
1) I'm using a Relative move mode with a Bezier spline path. Is there any way I can remove the ease In & out of the move mode?
Or if you have a thought about this:
2) I have multiple objects that use paths and all of them need to be at the final position of the path at the same time, no matter the length of the path etc. 

e.g. 
obj 1 has path length of 10
obj 2 has path length of 20

both objects need to be at the end of the paths in 2 seconds.

I can achieve that using relative mode but I can't use the ease in & out it produces

Thanks
Reply
#2
Hi,
I would advise you to use the Absolute mode, and set the speed to the value of the path's length.
And just to clarify, the relative mode does not apply an ease in & out effect, but if the spline is stretched in the middle, then an effect similar to ease in & out will be visible. For more details about this subject, read the following:
https://curvyeditor.com/documentation/controllers#position
https://curvyeditor.com/documentation/splines/start#units
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
(07-20-2020, 08:40 PM)_Aka_ Wrote: set the speed to the value of the path's length.

Can you expand more on this? How would I calculate the speed for each path lenght to play in say for 2 seconds independent of the length?

(07-20-2020, 08:40 PM)_Aka_ Wrote: the relative mode does not apply an ease in & out effect, but if the spline is stretched in the middle

Can I eliminate the stretching with a different type of spline?
Reply
#4
1- simple maths: speed = distance / time. The distance is either the spline's, the path's or the volume's length, depending on what type of controller you are using

2- complexe maths: As you can see here for Bézier splines, the points on a spline are not evenly distributed depending on the Bézier handles https://en.wikipedia.org/wiki/B%C3%A9zier_curve
To eliminate the stretching on a Bézier spline, you need to find the perfect length of the Bézier handles, which can be difficult.
That effect is less pronounced in Catmull-Rom splines, and nonexistent in linear splines.
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
  Finding relative position across connected splines DekoGames 1 8 02-05-2024, 10:11 PM
Last Post: _Aka_
  Support for "Fast Enter Play Mode" via "No Domain Reload" XtroTheArctic 5 9 11-27-2023, 12:03 PM
Last Post: _Aka_
  Disable rebuild of meshes in dynamic mode Zilk1 1 8 10-04-2023, 09:50 AM
Last Post: _Aka_
  Raise spline events during edit mode arcadeperfect 3 9 08-24-2023, 08:38 AM
Last Post: _Aka_

Forum Jump: