Help in rotation

Hi! Help please!

See this link: http://www.coolmath-games.com/0-rotate- ... index.html
How to make rotation as this game.
I set gravity to (0,0). Add angular velocity to object and add force to ball - (0,-10). All work, but rotation add impulse to ball and it jump when rotate.

Please tell me the principles of creating this revolution.

Thanks!
The physics in that game does not look realistic. Maybe they are using SetTransform instead of adding angular velocity to move the beam.
I'm trying using set position and angle of body after each step, but sometimes when speed the ball large it passes through wooden object. And on rotate the world ball goes into wood a little.
They might be just changing the gravity direction, and then rotating the view

Original thread: https://box2d.org/forum/viewtopic.php?t=7463