Timeline with Lerp doesnt work properly

I am currently working in Unreal Engine 5 on a sniper prototype and i am using a class for Projectile where i need to decrease the projectile Velocity smoothly but when i use timeline with lerp:

It doesnt go in the forward direction but instead it just goes in World X direction where i dont want it to go. not even that when i use timeline with lerp in other cases it does the same thing in same direction!

#Timeline, #Lerp, #Ue5

I see nothing wrong with the timeline. The problem is that the forward vector of the projectile is not being taken into account, and the velocity is just being applied on the X axis.

You need to multiply the X velocity return value from the lerp by the projectile’s Forward vector, to obtain the velocity component in the three axis.

3 Likes