title: Scale and Draw texture to touch co-ordinates using libgdx
body: <p>I am trying to draw a texture from the center of the screen to the touch co-ordinates (Clock hand). To illustrate this i  created a <code>ShapeRenderer</code> to create a line from the center  to touching point. Below the code</p>
  
  <pre><code> if (Gdx.input.isTouched()) {
           camera.unproject(touchPoint.set(Gdx.input.getX(), Gdx.input.getY(), 0));
           debugRenderer.begin(ShapeType.Line);
           debugRenderer.setColor(Color.ORANGE);
           debugRenderer.line(centerObject.x, centerObject.y, touchPoint.x, touchPoint.y);
  
           debugRenderer.end()
   } 
  </code></pre>
  
  <p>This works fine. Now i need to replace the line  with the actual image (which i need to scale based on the touch position). I have tried  drawing the texture from the center point.I thought using</p>
  
  <pre><code>public void draw (TextureRegion region, float x, float y, float originX, float originY, float width, float height,
      float scaleX, float scaleY, float rotation) 
  </code></pre>
  
  <p>of <code>SpriteBatch</code> help me to draw the texture. But  Its not working. Below the code</p>
  
  <pre><code> private TextureRegion handRegion; 
  private Texture handTexture;
  
   handTexture = new Texture(
                  Gdx.files.internal("hand.png"));
   handRegion = new TextureRegion(handTexture);
  
   //origin_X,origin_Y are the center of the screen
  
  if (Gdx.input.isTouched()) {
               camera.unproject(touchPoint.set(Gdx.input.getX(), Gdx.input.getY(), 0));
               game.batch.begin();
               game.batch.draw(handRegion, touchPoint.x, touchPoint.y, origin_X, origin_Y,10,100,1,1,0);               
               game.batch.end();
       } 
  </code></pre>
  
  <p>I really appreciate any help solving this one.</p>