SFML community forums

Help => Graphics => Topic started by: takercena on June 08, 2012, 06:23:52 am

Title: Shape setposition
Post by: takercena on June 08, 2012, 06:23:52 am
I read somewhere in this forum that setposition is returning an absolute coordinate. Is there any way to make it so when I set a circle origin (setPosition) at 0,0, only the last quarter of the circle is viewed on the window?
Title: Re: Shape setposition
Post by: Laurent on June 08, 2012, 08:08:05 am
You can set the origin of the circle to be its center instead of its top-left corner

circle.setOrigin(radius / 2, radius / 2);
Title: Re: Shape setposition
Post by: takercena on June 14, 2012, 05:02:56 am
Thank you.