SFML community forums
Help => Graphics => Topic started by: Flaze07 on July 09, 2017, 04:23:32 am
-
hi...
for example i have this code
rect.setOrigin(rect.getSize().x / 2, rect.getSize().y / 2);
rect.rotate(1);
rect.setOrigin(0, 0);
the rect doesn't rotate according to the origin in the middle but according to the origin of top left
why ?
-
I answered you already on your other thread:
https://en.sfml-dev.org/forums/index.php?topic=22221.msg156741#msg156741
-
ah..I see ;D