title: Making Character move around circle
body: <p>So I have a 2d game which normally just has gravity and "flat" levels however I have added in "planets" which have their own gravity.</p>
  
  <p>I have a function called addForce(float xForce, float yForce) that I use to move my character. So say if I called player.addForce(1, -1); the player would move up and to the right(albeit slightly). This worked fine on the levels with regular downward gravity, however with planets it is not so. 
  There is another float called earthAngle which is:</p>
  
  <blockquote>
    <p>atan2(player.getY()-earth.getY(), player.getX()-earth.getX());</p>
  </blockquote>
  
  <p>What I did for the jumping code on the planets is:</p>
  
  <blockquote>
    <p>player.addForce(cos(earthAngle)*1500, sin(earthAngle)*1500);</p>
  </blockquote>
  
  <p>which works well. However I am stuck on how to make the character walk around the planet.</p>
  
  <p>Currently for the movement code I have:</p>
  
  <blockquote>
    <p>player.addForce(25*x_*cos(earthAngle), 25+x_*sin(earthAngle));</p>
  </blockquote>
  
  <p>which only works on some parts and works in reverse on the bottom as well as being stronger/weaker on some parts, x_ can be either -1(left) or 1(right). I'm guessing their is a really elegant solution I am just overlooking. Thanks.</p>