so I have a little character that runs around on a field using this:
void Update ()
{
float runSpeed = 10f;
float moveH = Input.GetAxis ("Horizontal");
float moveV = Input.GetAxis ("Vertical");
Vector2 vel = new Vector2(moveH * runSpeed, moveV * runSpeed).normalized;
vel *= runSpeed;
rigidbody2D.velocity = vel;
}
But here my problem is that when I release the W, S, A or D button the character will glide a bit extra before stopping. I would like hte character to eather get a rather quick decending in speed when stopping or comming to a complete stop when releasing the move button.