I’m quite new to using Blueprints so I’m hoping someone might be able to help me work out what I’m doing wrong here.
I have a custom event in my actor’s event graph which takes an integer input, multiplies it by 100 (to convert to mm) and adds it to the actor’s location to move it forward.
This setup works correctly but teleports the actor, as there is no interpolation:
In order to get that smooth motion, I added a timeline node with a linear float graph and plugged it into a vector lerp. However, this now seems to move the actor forward by about 30x the expected distance:
The problem was that you had overlapping distances being moved, so the actor was taking in a new start and end variable and remultiplying the distance by its new location. The solution was to snapshot the beginning and end locations by promoting them to variables before the timeline to keep them from being altered while it is already lerping.
Let us know if this solves your issue! If you still have a problem with it please let us know here.