Question by
flaviolight92 · Feb 15, 2017 at 01:46 PM ·
getaxisslide
How to Stop RigidBody.velocity Gradually 2D
I want my character slide a little before i change direction like super mario when he runs in a direction and you turn the analog stick in the other he drifts a little before he start runs in the other direction. How can i do that using rb.velocity(input.getxaxis(Horizontal) * speed)?
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612111135im_/https://answers.unity.com/themes/thub/images/avi.jpg)