Hi all, here is a tough one
I have an actor (Simple sphere) that i want to move smoothly in a direction. I have a trajectory variable (vector) in the actor which tells the direction to move and for how far. Basically, if i set the trajectory to [2,0,0] then i want the actor to smoothly move in the x direction until it has moved 2 units.
Originally i did this by using a timeline and lerp between start position and end position and using set actor location. However, now i have added a functionality where the actor teleports to a different location while moving towards the end direction, but i want it to keep moving in the same direction but not necessarily towards the original end location. That is why i want to use add actor world offset, so that the end location is irrelevant and now only the direction and length of the movement is relevant.
I hope it makes sense. Been struggling with this for weeks now. Should i use something else than timeline?