You've already forked godot
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user