diff options
author | Crazy-P <patrickolsen@myw.dk> | 2018-04-09 14:48:03 +0800 |
---|---|---|
committer | Crazy-P <patrickolsen@myw.dk> | 2018-04-09 14:48:03 +0800 |
commit | ae7a9df292c36dbc15d43b43017cd42efe5707c4 (patch) | |
tree | 3f3172edaed277559edb6b18663151a294ae5d3e /core/math | |
parent | 0ee72fbd30b25ff397b570294c3cd2f65c176e34 (diff) |
Resolves Inccorect Quaternion Conversion
Fixes https://github.com/godotengine/godot/issues/18025
Diffstat (limited to 'core/math')
-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); } |