SFML community forums

Help => Graphics => Topic started by: Austech on December 03, 2009, 09:03:35 pm

Title: Setting an Axis point for a Sprite to Rotate around?
Post by: Austech on December 03, 2009, 09:03:35 pm
Is there a way to set a point for a sprite to rotate around? For example, if I rotated a sprite, it would rotate around it's X and Y position. But is there a way to get a sprite to rotate around a larger area? Sorry if you don't know what I'm talking about, it's kind of hard for me to explain.
Title: Setting an Axis point for a Sprite to Rotate around?
Post by: G. on December 03, 2009, 09:51:38 pm
It rotates around its center.
SetCenter(float, float) may be what you're looking for.