Is there a way to change the origin of a Texture/TextureRegion when using the draw call
public void draw (TextureRegion region, float width, float height, Affine2 transform)
in LibGDX?
I'm trying to load an animation which is exported from Adobe After Effects. Currently the transform is exported as an affine 2D matrix and it's just rotation so it's simple, but it may get more complex later so I don't want to just use this call
public void draw (TextureRegion region, float x, float y, float originX, float originY, float width, float height, float scaleX, float scaleY, float rotation)
What I've achieved so far is just this (the origin is fixed at 0, 0): http://postimg.org/image/9qxux0sfr/
instead of this (good origin): http://postimg.org/image/pd60zaa89/