mirror of
https://github.com/godotengine/godot.git
synced 2024-11-27 09:16:35 +08:00
Merge pull request #18079 from Crazy-P/Resolves-Inccorect-Quaternion-Conversion
Resolves Incorrect Quaternion Conversion
This commit is contained in:
commit
ebeb493dc0
@ -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…
Reference in New Issue
Block a user