- Home /
Question is off-topic or not relevant
Is there any way to make lerp work consistantly in update? C#
So I need to move an object in update with the smoothing out that lerp provides but if I run it in update I get different speeds depending on the framerate. Is there any way of avoiding that while still keeping the smoothing out in the end?
Edit: Wow I figured out that the problem was not in the Lerp part of my script but in the SmoothDamp part, I am so sorry for posting this question before doing more research myself.
Answer by TonyLi · Jun 22, 2017 at 05:34 PM
Base it on the amount of time elapsed in each frame, as shown in the example code for Vector3.Lerp.
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
I want my camera to move between two points for a menu 1 Answer
Distribute terrain in zones 3 Answers
Lerp is not moving 2D Prefab over time. 2 Answers
Lerp not moving 2D object correctly 1 Answer