How can I move an object over a set amount of time.
I have an object that I'd like to interpolate from vector A to vector B. But I'd like to be able to dynamically set how long it will take to get to vector b. So for example I could input time 4 seconds, and the object would interpolate from vector A to vector B over 4 seconds. I need to be able to set this dynamically during play. If someone could explain to a semi noob the math for accomplishing that. Or maybe there's a blueprint node I'm not aware of. I'm currently using a timeline with an ease node and I can't seem to accomplish what I want with just that.
Timelines would definitely work. I actually just built something like this. You could also check out the Interp to Movement component, which adds that functionality to any blueprint without any real coding involved.
The interp to Movement component exposes these settings:
Here's where you find it:
And of course, you could use both. Meaning: Use a timeline setup like in the first example, to drive the parameters of an Interp to Movement Component. Good luck!
answered Feb 11 '18 at 08:41 AM
Use a timeline,
you can set the time inside it and the vector locations and it will feed the movement over time.
To get the node just type " Add Timeline "
To edit the node double click it.
youtube video Explaining Timelines https://www.youtube.com/watch?v=v7bdcvGlgIg
Hope this helps
Follow this question
Once you sign in you will be able to subscribe for any updates here