- Home /
Smooth a Value
moveAnim = moveDelta * (Running ? 2 : 1);
So look when running is true return 2 to moveAnim and how can i make that this moveAnim goes smoother into 2
Comment
Best Answer
Answer by Ejlersen · Mar 24, 2021 at 12:35 PM
Several ways of doing this. Have a look at Mathf class. There is Lerp, SmoothStep, MoveTowards.
In your case without seeing any code showing the context. Then try MoveTowards.
Your answer
![](https://koobas.hobune.stream/wayback/20220613031229im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Value increase or decrease smoothed 1 Answer
how to change a value over time in a coroutine ? 2 Answers
Smooth Clamping? 1 Answer
Networked Movement Jitter 0 Answers
Smooth Camera Rotate 2 Answers