title: libgdx setOrigin and setPosition not working as expected?
body: <p>I create a camera:</p>
  
  <pre><code>camera = new OrthographicCamera(5.0f, 5.0f * h/w);
  </code></pre>
  
  <p>Create a sprite:</p>
  
  <pre><code>ballTexture = new Texture(Gdx.files.internal("data/ball.png"));
  ballTexture.setFilter(TextureFilter.Linear, TextureFilter.Linear);
  TextureRegion region = new TextureRegion(ballTexture, 0, 0, ballTexture.getWidth(), ballTexture.getHeight());
  ball = new Sprite(region);
  </code></pre>
  
  <p>Set the origin, size, and position:</p>
  
  <pre><code>ball.setOrigin(ball.getWidth()/2,ball.getHeight()/2);
  ball.setSize(0.5f, 0.5f * ball.getHeight()/ball.getWidth());
  ball.setPosition(0.0f, 0.0f);
  </code></pre>
  
  <p>Then render it:</p>
  
  <pre><code>batch.setProjectionMatrix(camera.combined);
  batch.begin();
  ball.draw(batch);
  batch.end();
  </code></pre>
  
  <p>But when I render it, the bottom left of my ball sprite is at (0, 0), not the center of it, as I would expect it to be because I set the origin to the center of the sprite. What am I missing?</p>