1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Get Node3D.global_rotation from orthonormalized global basis

This commit is contained in:
kleonc
2024-08-02 18:11:54 +02:00
parent cb7cd815ee
commit 396ca1fa7f

View File

@@ -357,7 +357,7 @@ void Node3D::set_global_basis(const Basis &p_basis) {
Vector3 Node3D::get_global_rotation() const {
ERR_READ_THREAD_GUARD_V(Vector3());
return get_global_transform().get_basis().get_euler();
return get_global_transform().get_basis().get_euler_normalized();
}
Vector3 Node3D::get_global_rotation_degrees() const {