diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2018-04-09 21:58:05 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-09 21:58:05 +0200 |
commit | ebeb493dc0e63013927b5c8ef684e51412709ab8 (patch) | |
tree | 53bafbd34f10fc963a65c99fd9792c37bec52e07 /core | |
parent | 62e5be8651e06153ab9f8a8572b25d5bf1b3b5f9 (diff) | |
parent | ae7a9df292c36dbc15d43b43017cd42efe5707c4 (diff) |
Merge pull request #18079 from Crazy-P/Resolves-Inccorect-Quaternion-Conversion
Resolves Incorrect Quaternion Conversion
Diffstat (limited to 'core')
-rw-r--r-- | core/math/quat.cpp | 2 |
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); } |