From 360e24c3301f688770055d5897b98342fb163077 Mon Sep 17 00:00:00 2001 From: namelessvoid Date: Mon, 16 Dec 2024 00:43:46 +0100 Subject: [PATCH] Add missing 'not' in HSM state example --- doc/source/getting-started/hsm.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/source/getting-started/hsm.rst b/doc/source/getting-started/hsm.rst index 107e73e..6a8a5c9 100644 --- a/doc/source/getting-started/hsm.rst +++ b/doc/source/getting-started/hsm.rst @@ -197,7 +197,7 @@ Let's illustrate this with a practical code example: func _idle_update(delta: float) -> void: var dir: Vector2 = Input.get_vector( &"ui_left", &"ui_right", &"ui_up", &"ui_down") - if dir.is_zero_approx(): + if not dir.is_zero_approx(): hsm.dispatch(&"movement_started")