make ball resist forces

I have a ball as my character, with a bouncy material on it, it has a circle collider attached to it, and platforms with a box collider, when i hit the side of the ball with the edge of the box collider, it will apply force on it and will knock it to the side making it hard to control it by the user, how can I make the ball ignore such forces?
using this script to control it’s movemnt:
rigidbody2D.velocity = new Vector2 (rigidbody2D.velocity.x, 9);

Use character controller, move object directly with transform.translate, or the best solution to ignore physics, but don’t go through colliders is to set rigidbody.velocity directly. But it is in global scale so you might want to convert it to relative velocity. This might be one thing you were looking for: