mirror of
https://github.com/godotengine/godot.git
synced 2025-04-01 00:41:35 +08:00
Resolves Inccorect Quaternion Conversion
Fixes https://github.com/godotengine/godot/issues/18025 (cherry picked from commit ae7a9df292c36dbc15d43b43017cd42efe5707c4)
This commit is contained in:
parent
4e756d61c8
commit
e5a17617e6
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user