Move Actor towards direction

Hey guys!

How would I move an Actor, more precisely a character, towards a given direction without LaunchCharacter? I know some of you’d say to use CharacterMovement, but in this scenario, I can’t.

What I do need is something like Set Actor Location on every x seconds, but I couldn’t find any node that would do that by default and I’m not into math to create the solution myself.

The materials I have to use on my behalf:

  • Final Location, which is a Vector.
  • Actor Location, which is another Vector.

With these two variables in hand, how can I move my actor towards Final Location using Set Actor Location gradually?

I’m only blocked with the mathematical puzzle of the question. The timer is quite simple to handle.

Thank you!

Hi , I’m at work so I can’t make an example but you will probably want to use the “Vinterp”. This has an input for current location (your actors location) and target (your final location), along with the speed at which you want to move from one point to the next smoothly. There should be more in the documentation.

The output of this function would then be what is used for “set actor location” and you would just update it repeatedly for a smooth look.

I’d say… bingo! It worked almost like a charm!

The only issue I’ve found is that sometimes the Character goes off the ground:

https://i.imgur.com/VPO97gL.png

Not sure how to correct this though. Ideas?

Nevermind. This clipping issue is unrelated to Vinterp To.

Your solution fixed my problem! Thank you very much, @Eromis!