https://docs.godotengine.org/en/stable/tutorials/scripting/idle_and_physics_processing.html
Idle and Physics Processing — Godot Engine (stable) documentation in English
Games run in a loop. Each frame, you need to update the state of your game world before drawing it on screen. Godot provides two virtual methods in the Node...
idle and physics processinggodot engine