I know it's supposed to do it automatically, but for some reason it seems like the origin point resets.
I made the game by editing the jumper demo, maybe that's it, maybe the demo was made before origin point. I have no idea.
CAPX here: mega.nz
Arrow keys to pivot. It's supposed to pivot by the bottom, but it does it by the middle. The little ball I attached to the origin point to find out where the game thinks it is.