04-22-2018, 10:55 PM
Before I started looking at Animation, I had movement with the Spline Controller working just fine.
With the Move Mode set as Absolute, I could calculate the Speed as basically my distance / time.
This is great because I know my distance and how quickly or slowly I want to move, so it all just worked.
Then I wanted to make the movement more realistic with easing (slow down at end, speed up at start etc) so I enabled Animate. Now, I have a Time Scale property which I think is the same as my total time, but I no longer know how to programmatically calculate the Speed because it means something else, speed delta (which I think means acceleration?)
Given that I have a target total movement time and the total distance to travel, how do I go about calculating this new speed, which may have sections with varying speed for easing in and out?
With the Move Mode set as Absolute, I could calculate the Speed as basically my distance / time.
This is great because I know my distance and how quickly or slowly I want to move, so it all just worked.
Then I wanted to make the movement more realistic with easing (slow down at end, speed up at start etc) so I enabled Animate. Now, I have a Time Scale property which I think is the same as my total time, but I no longer know how to programmatically calculate the Speed because it means something else, speed delta (which I think means acceleration?)
Given that I have a target total movement time and the total distance to travel, how do I go about calculating this new speed, which may have sections with varying speed for easing in and out?