SFML community forums
Help => Graphics => Topic started by: SuperV1234 on April 04, 2010, 09:46:13 pm
-
If I modify the .Scale of a Sprite, and then set the .Center to:
.Center = new Vector2(.Width / 2, .Height / 2);
...the center is not in the correct place. How do I prevent this?
-
Center is in local coordinates, it is applied before all other transformations. This means that you don't have to change it when you apply a translation, rotation or scale.
-
Center is in local coordinates, it is applied before all other transformations. This means that you don't have to change it when you apply a translation, rotation or scale.
Thanks, I understand now.