Forum Archive

How scene.rotate works?

JadedTuna

I tried using it with a simple ellipse, but I still have no idea how it works and where actually is the rotation point. It seems as the ellipse is not rotated along its own rotation point (center).

P. S. A side question: scene.translate just moves objects on the x and y axises by the specified number, right?

JonB

See this thread:
https://forum.omz-software.com/topic/2268/view-transform-origin/2

JonB

whoops, i realized that post was about ui, not scene.

Why don't you post your example code, and we can take a look.

Are you using scene.translate before rotate? That will likely cause the center of rotation to be different than what you expect.