Get Node3D.global_rotation from orthonormalized global basis

This commit is contained in:
kleonc 2024-08-02 18:11:54 +02:00
parent 3978628c6c
commit 435f630d35
1 changed files with 1 additions and 1 deletions

View File

@ -280,7 +280,7 @@ void Node3D::set_global_basis(const Basis &p_basis) {
Vector3 Node3D::get_global_rotation() const { Vector3 Node3D::get_global_rotation() const {
ERR_READ_THREAD_GUARD_V(Vector3()); 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 { Vector3 Node3D::get_global_rotation_degrees() const {