summaryrefslogtreecommitdiff
path: root/core/math/quat.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2018-04-09 21:58:05 +0200
committerGitHub <noreply@github.com>2018-04-09 21:58:05 +0200
commitebeb493dc0e63013927b5c8ef684e51412709ab8 (patch)
tree53bafbd34f10fc963a65c99fd9792c37bec52e07 /core/math/quat.cpp
parent62e5be8651e06153ab9f8a8572b25d5bf1b3b5f9 (diff)
parentae7a9df292c36dbc15d43b43017cd42efe5707c4 (diff)
Merge pull request #18079 from Crazy-P/Resolves-Inccorect-Quaternion-Conversion
Resolves Incorrect Quaternion Conversion
Diffstat (limited to 'core/math/quat.cpp')
-rw-r--r--core/math/quat.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/math/quat.cpp b/core/math/quat.cpp
index 9aa8b537d2..4f61401ac7 100644
--- a/core/math/quat.cpp
+++ b/core/math/quat.cpp
@@ -89,7 +89,7 @@ void Quat::set_euler_yxz(const Vector3 &p_euler) {
set(sin_a1 * cos_a2 * sin_a3 + cos_a1 * sin_a2 * cos_a3,
sin_a1 * cos_a2 * cos_a3 - cos_a1 * sin_a2 * sin_a3,
- -sin_a1 * sin_a2 * cos_a3 + cos_a1 * sin_a2 * sin_a3,
+ -sin_a1 * sin_a2 * cos_a3 + cos_a1 * cos_a2 * sin_a3,
sin_a1 * sin_a2 * sin_a3 + cos_a1 * cos_a2 * cos_a3);
}