Normalise so we don't get extra speed on diagonals

This commit is contained in:
Steve Howes
2023-09-23 19:34:34 +01:00
parent 0bf587719c
commit 568be29bf7
+2
View File
@@ -17,6 +17,8 @@ func _physics_process(_delta):
update_animation_parameters(input_direction)
input_direction = input_direction.normalized()
velocity = input_direction * move_speed
pick_new_state()