- 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
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