Improved performance

This commit is contained in:
2024-02-26 23:50:56 +01:00
parent afab83a35f
commit 885459f5d3
12 changed files with 45 additions and 13 deletions

View File

@ -29,6 +29,9 @@ func _physics_process(delta):
if !body.is_on_floor():
body.velocity.y -= gravity * delta
if !body.velocity:
return
body.move_and_slide()
func on_direction_changed(new_direction: Vector3):