Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - sfmllmfs

Pages: [1]
1
Graphics / Re: Rotations About Center of Circle
« on: October 06, 2020, 07:11:12 pm »
Oh.

That would explain a lot!  :-[

Thanks for pointing that out!!!

2
Graphics / Rotations About Center of Circle
« on: October 04, 2020, 02:13:49 am »
Hi there,

This is likely a very dumb question, but based on reading all the documentation of rotation and setOrigin, this isn't clear to me why the behavior is such.

My question is based on the code below. It seems as  though rotating a circle about its center (which seemingly should have no effect) actually moves the circle!

sf::CircleShape c( 100.f );
c.setOrigin(sf::Vector2f(100.f, 100.f));
c.rotate(45);

If I render that graphic, the circle is not fixed. Instead, only its bottom right quadrant appears in the window.

What happened here?

Pages: [1]