Ball getting stuck on going sideways.

My ball is getting stuck on going sideways quite often, I’m wondering which would be best way to fix this:

16445-untitled-2.png

It just keeps going from one side to other.

So would the best way to prevent this from happening be that I apply little bit force for down all the time?

Without playing the game, it is hard to figure out what solution will look the best. I’m assuming you are playing on the XY plane. Start with something like this on the ball:

if (Mathf.Abs(rigidbody.velocity.normalized.x) > 0.99) {
    rigidbody.AddForce(Vector3.up * Mathf.Sign(rigidbody.velocity.y) * someSmallValue);
}

You may need to adjust the 0.99 value. You may only want to make this correction when you detect a collision with the wall. There are other ways to fix this problem if this one is not right.