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/co...s#position
https://curvyeditor.com/documentation/sp...tart#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
  Mesh losing its collider when I exit 'Play Mode' uprashanth 3 3,356 05-06-2020, 11:49 AM
Last Post: _Aka_
  Move CP00X position in hierarchy UsernameHed 1 1,019 11-12-2019, 02:01 PM
Last Post: _Aka_
  Move the Create Mesh of a CurvyGenerator Out of the Main Parent UsernameHed 3 2,110 07-08-2019, 06:57 PM
Last Post: _Aka_
  Move SplineController in rhythm of song electricpunch 10 5,730 05-16-2019, 09:02 PM
Last Post: _Aka_

Forum Jump: