SFML community forums
Help => Graphics => Topic started by: Austech on December 06, 2009, 08:41:50 am
-
Sorry for all the questions, but Is there a way to get the position of a sprite after it rotated? Because when I try it gets it's original position, not the area that it rotated to.
-
Use this:
sf::Vector2f position = sprite.TransformToGlobal(localPoint);
Where local point is the point on the sprite that you want top get the coordinates in global space (example: (0, 0) for its current center).