diff --git a/src/main/kotlin/ru/dbotthepony/mc/otm/core/math/MatrixExt.kt b/src/main/kotlin/ru/dbotthepony/mc/otm/core/math/MatrixExt.kt index bf434c301..11acd5701 100644 --- a/src/main/kotlin/ru/dbotthepony/mc/otm/core/math/MatrixExt.kt +++ b/src/main/kotlin/ru/dbotthepony/mc/otm/core/math/MatrixExt.kt @@ -83,7 +83,7 @@ fun Matrix3f.toMatrix4f(): Matrix4f { var Matrix4f.translation: Vector3f get() { - return Vector3f(this[3, 0], this[3, 1], this[3, 2]) + return Vector3f(this[0, 3], this[1, 3], this[2, 3]) } set(value) { @@ -99,7 +99,7 @@ var Matrix4f.translation: Vector3f var Matrix4f.translation4: Vector4f get() { - return Vector4f(this[3, 0], this[3, 1], this[3, 2], this[3, 3]) + return Vector4f(this[1, 3], this[1, 3], this[2, 3], this[3, 3]) } set(value) {