Timeline not working properly

So I have this setup with function to move object from A to B using lerp between two locations. As a Lerp Alpha I’m using input from timeline. Float track with length of 2 sec and two keyframes of values: 0,0 at the beginning and 2,1 at the end. Both keys are smoothed as auto.

The problem is: I am expecting easy start and easy end of the movement. But instead I’m getting easy start and hard end, like it is still linear key frame.

What I did wrong?

You have to fix both values for the lerp in a timeline like this.

You’re sampling the second :slight_smile:

2 Likes

Hey @Norowind ,

I think the issue here is you are running the alpha on each small movement not the overall movement from Point A - B. Instead I would calculate the Current and New Location once before the timeline and then just use this inside the timeline. Currently your lerping the tiny amounts of 10 each frame which isn’t your desired effect.

2 Likes

Good point, thank you!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.