summaryrefslogtreecommitdiff
path: root/core/math
diff options
context:
space:
mode:
authorCrazy-P <patrickolsen@myw.dk>2018-04-09 14:48:03 +0800
committerCrazy-P <patrickolsen@myw.dk>2018-04-09 14:48:03 +0800
commitae7a9df292c36dbc15d43b43017cd42efe5707c4 (patch)
tree3f3172edaed277559edb6b18663151a294ae5d3e /core/math
parent0ee72fbd30b25ff397b570294c3cd2f65c176e34 (diff)
Resolves Inccorect Quaternion Conversion
Fixes https://github.com/godotengine/godot/issues/18025
Diffstat (limited to 'core/math')
-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);
}