Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
(+1)

Haia, I saw you had some bugs when using Lerp & Delta Time and I just wanted to give you a tip on how to use lerps more accurately!

The correct formula to have framerate independent Lerp is: 
Mathf.Lerp(B, A, Mathf.Exp(-speed * Time.deltaTime))
notice A and B are reversed!
This should also stay within a 0-1 range as long as the contents of Exp stay negative!  

There's more written up with graphs here: https://www.rorydriscoll.com/2016/03/07/frame-rate-independent-damping-using-ler...

(+1)

Nice, thank you! I love, when being open about problems, people come and help out! I'll take a look at my code later.