Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

I've encreased the drag on the Rigidbody

If it's because you use rigidbody.AddForce() for your horizontal movement, I think you can try something like:

rigidbody.velocity = new Vector2(Mathf.SmoothDamp(rigidbody.velocity.x, Input.GetAxisRaw("Horizontal"), ref walkVelocity, smoothTime), rigidbody.velocity.y);

where smoothTime is the time you want the movement to change and walkVelocity a variable that the function uses to store the acceleration.

thanks, but it's a 3D game . I'l use this in the future aniway, thanks.