mirror of
https://github.com/Creators-of-Create/Create.git
synced 2025-01-27 05:18:08 +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)
|
||||
matrix.multiply(new Matrix3d().asXRotation(AngleHelper.rad(-xRotation)));
|
||||
if (yRotation != 0)
|
||||
matrix.multiply(new Matrix3d().asYRotation(AngleHelper.rad(yRotation)));
|
||||
matrix.multiply(new Matrix3d().asYRotation(AngleHelper.rad(-yRotation)));
|
||||
if (zRotation != 0)
|
||||
matrix.multiply(new Matrix3d().asZRotation(AngleHelper.rad(-zRotation)));
|
||||
return matrix;
|
||||
|
|
|
@ -40,8 +40,8 @@ public class Matrix3d {
|
|||
double s = Mth.sin(radians);
|
||||
double c = Mth.cos(radians);
|
||||
m00 = m22 = c;
|
||||
m20 = s;
|
||||
m02 = -s;
|
||||
m02 = s;
|
||||
m20 = -s;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue