旋转图集区域 Libgdx

Rotate Atlas Region Libgdx

protected TextureAtlas atlas = Assets.manager.get(Constants.ATLAS_PATH, TextureAtlas.class);

AtlasRegion region = interfaceAtlas.findRegion("arrow");

我已经加载了这样的图像 (http://marinedealerconference.com/wp-content/uploads/2015/07/right.png):一个指向右的箭头...

但是我找不到旋转它的方法! 我怎么能够?因为我希望它下降。

虽然可以旋转但不能旋转区域Sprite or Image

    //sprite:
    public void rotate(float degrees)

    //image - remember to set origin to the center here!
    public void rotateBy(float amountInDegrees)

您可以 "tell" SpriteBatch 来绘制旋转区域,而不是旋转区域本身:

    batch.draw(region, x, y, originX, originY, width, height, scaleX, scaleY, rotation);