SpriteBatch batcher = new SpriteBatch();
batcher.draw(TextureRegion region,
float x,
float y,
float originX,
float originY,
float width,
float height,
float scaleX,
float scaleY,
float rotation)
What is the meaning of originX, originY, scaleX, scaleY, rotation? Also can you please give me an example of their use?
Why don’t you look into docs ?
As stated in docs, origin is bottom left corner,
originX,originYare offsets from this origin.For example if you want object rotate around his center, you will do this.
By specifing
scaleX,scaleY, you scale the image, if you want to make Sprite 2x larger, you will set both scaleX and scaleY to number2.rotationspecifies rotation around origin in degrees.This code snippet draws texture rotated by 90 degrees around its center
or take a look at tutorial here.