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

Author Topic: Problems with Drawable.Rotate  (Read 1463 times)

0 Members and 1 Guest are viewing this topic.

servvs

  • Newbie
  • *
  • Posts: 10
    • View Profile
Problems with Drawable.Rotate
« on: April 14, 2010, 12:07:25 am »
Is there any way to rotate an image from an offset axis? Basically I want a wheel to spin in circles but it rotates around a large axis...

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Problems with Drawable.Rotate
« Reply #1 on: April 14, 2010, 12:14:05 am »
You can set the center of the drawable (which will be the center of rotation as well as all other transformations) with the SetCenter function.
Laurent Gomila - SFML developer

servvs

  • Newbie
  • *
  • Posts: 10
    • View Profile
Problems with Drawable.Rotate
« Reply #2 on: April 14, 2010, 12:35:26 am »
thank you very much laurent. Ive got to read more on all the functions before I ask questions.

 

anything