title: LibGDX problems rotating sprite
body: <p>OK so I'm really confused I've rotated sprites before and had no problem such as rotating a boat as it moves through an ocean, but for some reason I'm having a really big problem this time. So I create a texture in an assets file, but not static textures. I load the texture using the following:</p>
  
  <pre><code>class Assets{
      Texture img;
      public Assets(){
          img = new Texture(Gdx.files.internal("images/PNG.png")
  </code></pre>
  
  <p>And then I call the assets in the main class by calling:</p>
  
  <pre><code>Assets assets = new Assets()
  </code></pre>
  
  <p>And then I have a class that is an animator just for this main character because his animation is so different and varied from other characters.</p>
  
  <pre><code>class Animations{
      Guy MYGUY;
      Texture firstTexture;
      ArrayList&lt;Texture&gt; running;
      Sprite CurrentSprite;
      public Animations(Texture standingStill, Guy myGuy){
          MYGUY = myGuy;
          firstTexture = standingStill;
          running = new ArrayList&lt;Texture&gt;();
          running.add(firstTexture);
          CurrentSprite = new Sprite(firstTexture);
  
      public void update (int direction, int state){
           CurrentSprite.setPosition(MYGUY.X, MYGUY.Y)
          // I have a switch here, but it does nothing yet because I haven't added in different actions for the character.
          //However I do have a switch for direction, because that is important right now
          switch(state){
          case Guy.LEFT:
              CurrentSprite.set rotation(180);
          //yes there are more, but even rotating 180 won't work correctly
          }
  </code></pre>
  
  <p>Then I have a renderer class to draw everything, i have the object <code>MyGuy</code> in an object for the world called <code>myLand</code> and I draw it with:</p>
  
  <pre><code>myLand.GUY.animation.CurrentSprite(batch);
  </code></pre>
  
  <p>So my problem arises on the rotation, whenever it rotates 180 degrees it seems to always rotate around the coordinates (0, 0) instead of the center of the sprite. So it usually ends up where I move like five to the right, but then if I try to go left it does double the distance backwards, but the camera position stays the same, and the guy usually disappears off the left or right side of the screen.</p>