Made setRotation() function in ModelRotatePart clamp float values.

This commit is contained in:
Luis C.M committed 2023-03-17 02:38:15 -05:00
1 parent 992e6fd169
commit 9a77e2f146
1 file changed
+3 -3
@@ -25,9 +25,9 @@ public class ModelRotatePart implements IModelRotatePart {
}
public void setRotation(float x, float y, float z) {
this.rotationX = x;
this.rotationY = y;
this.rotationZ = z;
this.rotationX = ValueUtil.correctFloat(x, -0.5f, 0.5f);
this.rotationY = ValueUtil.correctFloat(y, -0.5f, 0.5f);
this.rotationZ = ValueUtil.correctFloat(z, -0.5f, 0.5f);
}
public float getRotateX() {