How to detect the rotaion?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By ZombieGame007

How do I detect the current direction of KinematicBody2D?

:bust_in_silhouette: Reply From: wombatstampede

KindematicBody2D is a child of Node2D:

If I understand your question correctly then you want to know where such a node currently points to.
That’d be the global_rotation property (in radians) or global_rotation_degrees (in degrees). If you want get the rotation relative to the parent node then use the same properties without the “global” prefix.