This commit is contained in:
Haze Weathers 2025-03-06 14:22:02 -05:00
parent d77ed8a49f
commit 20f35ab240
5 changed files with 33 additions and 19 deletions

View file

@ -49,6 +49,11 @@ func kill() -> void:
state_chart.send_event(&"killed")
func launch(impulse: Vector2) -> void:
velocity = impulse
state_chart.send_event(&"launched")
#region Idle
func _slow_to_stop(delta: float) -> void:
velocity.x = move_toward(velocity.x, 0.0, stopping_force * delta)