From 435f630d35ac19e2d7fab4fd6200b8330d8bafed Mon Sep 17 00:00:00 2001 From: kleonc <9283098+kleonc@users.noreply.github.com> Date: Fri, 2 Aug 2024 18:11:54 +0200 Subject: [PATCH] Get Node3D.global_rotation from orthonormalized global basis --- scene/3d/node_3d.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/3d/node_3d.cpp b/scene/3d/node_3d.cpp index 2e08afb30db..334fdc72117 100644 --- a/scene/3d/node_3d.cpp +++ b/scene/3d/node_3d.cpp @@ -280,7 +280,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 {