Hi,
I use Lerp quite often for moving an item from one position to another with dt, but I require now that there is no "easing" at the end of the Lerp.
Is there another function to use to solve this?
Tks
Develop games in your browser. Powerful, performant & highly capable.
Every Ticks -> sprite: set t dt to min(1,sprite.t+dt) -> sprite: set X to lerp(sprite.xStart,sprite.xEnd,sprite.t)
If you provide a starting point, and end point and t start at 0 it should linearly interpolate between xStart and xEnd.