How to check if kinematicbody is currently moving

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

How to check if kinematicbody is currently moving

:bust_in_silhouette: Reply From: Zylann

KinematicBody doesn’t move on its own, it expects YOU to move it using a script (using move_and_slide etc). So… you already know when it moves. Unless you have a more specific problem?

To know if a thing moves in general, you could remember the position of the thing, and compare it with its new position later on (after modifying it, or after one frame has passed), and see if they are different (or far enough apart), but there may be a better way in your case.