How to know the global rotation of a Node2D?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By genete
:warning: Old Version Published before Godot 3 was released.

I’ve been looking up the Node2D documentation but I can’t find one equivalence to get_global_pos() function but for rotation.
Maybe a feature request?

:bust_in_silhouette: Reply From: CowThing

You can use get_global_transform().get_rotation() to get the global rotation of a Node2D.

For future references, get_global_transform()is member of CanvasItem

genete | 2016-09-20 21:37