mirror of
https://github.com/Creators-of-Create/Create.git
synced 2025-01-29 22:35:06 +01:00
Fix asYRotation (#5028)
This commit is contained in:
parent
f91afb2975
commit
28fe2fa148
2 changed files with 3 additions and 3 deletions
|
@ -876,7 +876,7 @@ public abstract class AbstractContraptionEntity extends Entity implements IEntit
|
||||||
if (xRotation != 0)
|
if (xRotation != 0)
|
||||||
matrix.multiply(new Matrix3d().asXRotation(AngleHelper.rad(-xRotation)));
|
matrix.multiply(new Matrix3d().asXRotation(AngleHelper.rad(-xRotation)));
|
||||||
if (yRotation != 0)
|
if (yRotation != 0)
|
||||||
matrix.multiply(new Matrix3d().asYRotation(AngleHelper.rad(yRotation)));
|
matrix.multiply(new Matrix3d().asYRotation(AngleHelper.rad(-yRotation)));
|
||||||
if (zRotation != 0)
|
if (zRotation != 0)
|
||||||
matrix.multiply(new Matrix3d().asZRotation(AngleHelper.rad(-zRotation)));
|
matrix.multiply(new Matrix3d().asZRotation(AngleHelper.rad(-zRotation)));
|
||||||
return matrix;
|
return matrix;
|
||||||
|
|
|
@ -40,8 +40,8 @@ public class Matrix3d {
|
||||||
double s = Mth.sin(radians);
|
double s = Mth.sin(radians);
|
||||||
double c = Mth.cos(radians);
|
double c = Mth.cos(radians);
|
||||||
m00 = m22 = c;
|
m00 = m22 = c;
|
||||||
m20 = s;
|
m02 = s;
|
||||||
m02 = -s;
|
m20 = -s;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue