I'm trying to rotate a textured region 180 degrees and align it with the other half, but I couldn't do it successfully because after the rotation I got confused with the coordinates.
Then I draw the first half with this code:
I did this completely with trial and error and it looks like this, which is fine for me:
So, with this code, I'm trying to draw the second half turned and align it with the first one so that it looks like a complete field. But I could not calculate the correct origin x, y y originX X. It proved complete trial and error and I suppose it is an incorrect way to do that.
batch.draw(pitchTextureRegion,?,?,pitchTexture.width/2f ,pitchTexture.height/2f,pitchTexture.width.toFloat()/2f,pitchTexture.height.toFloat()/2f,1f,1f,180f); // not sure about originX and originY