Physics bounce through rotation

Hi,

I have a ball (rigidbody2D) which I am moving on it`s x-axis through transform. When it comes to a bounce on another object, like a wall, it sure bounces, but it moves into the same direction as it was before, resulting into bouncing to the same wall all the time.

I want to keep the movement via tranform along the axis, because it benefits other parts of my coding, but how do I make the Unitys physicsEngine make my ball rotate that its x-axis faces another direction?

Hi, I use physics 2D and 3D Nvidia ( PhysX ) it work Good!. But some developers did not know how to use right and how to do it. At first add physics material on ball and on wall, after that change material parametrs.Use physical material for floor to( or for table ), I think it will 99% help you only you must find optimal solution for your game!