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

Author Topic: Circular movement  (Read 7754 times)

0 Members and 1 Guest are viewing this topic.

Hapax

  • Hero Member
  • *****
  • Posts: 3379
  • My number of posts is shown in hexadecimal.
    • View Profile
    • Links
Re: Circular movement
« Reply #15 on: February 07, 2014, 01:15:36 am »
st would be the speed of rotation, not the speed of movement.
If it's turning too quickly, divide st by n or - as Azaral suggested - convert to radians.
If it's moving (changing position) too quickly, you'll need to divide sx and sy by n.

n, in this case, is dependent on your computer's speed. It would be trial and error. If you wanted to be able to multiply by a speed variable, you'd need to divide by a higher number.
Selba Ward -SFML drawables
Cheese Map -Drawable Layered Tile Map
Kairos -Timing Library
Grambol
 *Hapaxia Links*