diff --git a/src/main/java/com/jozufozu/flywheel/util/transform/MatrixTransformStack.java b/src/main/java/com/jozufozu/flywheel/util/transform/MatrixTransformStack.java index 52cbdb5ab..32c962af1 100644 --- a/src/main/java/com/jozufozu/flywheel/util/transform/MatrixTransformStack.java +++ b/src/main/java/com/jozufozu/flywheel/util/transform/MatrixTransformStack.java @@ -53,8 +53,8 @@ public class MatrixTransformStack implements TransformStack { } @Override - public TransformStack scale(float factor) { - internal.scale(factor, factor, factor); + public TransformStack scale(float factorX, float factorY, float factorZ) { + internal.scale(factorX, factorY, factorZ); return this; } diff --git a/src/main/java/com/jozufozu/flywheel/util/transform/TransformStack.java b/src/main/java/com/jozufozu/flywheel/util/transform/TransformStack.java index 1066446cd..f1e247de7 100644 --- a/src/main/java/com/jozufozu/flywheel/util/transform/TransformStack.java +++ b/src/main/java/com/jozufozu/flywheel/util/transform/TransformStack.java @@ -13,12 +13,16 @@ public interface TransformStack { TransformStack multiply(Quaternion quaternion); - TransformStack scale(float factor); + TransformStack scale(float factorX, float factorY, float factorZ); TransformStack push(); TransformStack pop(); + default TransformStack scale(float factor) { + return scale(factor, factor, factor); + } + default TransformStack rotate(Direction axis, float radians) { if (radians == 0) return this;