![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | ZombieGame007 |
How do I detect the current direction of KinematicBody2D?
![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | ZombieGame007 |
How do I detect the current direction of KinematicBody2D?
![]() |
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.