Add support for rotating animations - move the origin to the animation frame center and add xAngle property to Direction enum
This commit is contained in:
@@ -74,6 +74,6 @@ public class DefaultAnimationManager implements AnimationManager {
|
||||
var texture = material.getTexture();
|
||||
var spriteWidth = texture.getWidth() / columns;
|
||||
var spriteHeight = texture.getHeight() / rows;
|
||||
return meshManager.createQuad(spriteWidth, spriteHeight, spriteWidth / 2f, spriteHeight * 0.9f);
|
||||
return meshManager.createQuad(spriteWidth, spriteHeight, spriteWidth / 2f, spriteHeight / 2f);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user