Question by
Burton-kun · Jul 15, 2018 at 10:08 PM ·
movementvector3coroutinelerp
Smoother grid based movement using coroutines and lerp
Hi. I move my player on the scene using a coroutine and linear interpolation to simulate a grid based movement. Everything works perfectly except one thing: it looks like there's a little gap between the tiles during movement. When the player moves from A to B it stops for a little while, the positions are recalculated and the movement start again. The problem is that on a protractred movement this gap between method calls decrease the whole smoothness of the movement. Is there any solution?
Comment
Your answer
Follow this Question
Related Questions
Vector 3 MoveTowards not working in my coroutine 0 Answers
Movement with changing destination 1 Answer
Animation out of time with custom clock 0 Answers
DOTween sequence snapping 0 Answers
Vector3.Lerp not moving object backwards 0 Answers