FPS Controller
This commit is contained in:
6
demo/assets/scripts/player/states/moving_state.gd
Normal file
6
demo/assets/scripts/player/states/moving_state.gd
Normal file
@@ -0,0 +1,6 @@
|
||||
extends PlayerState
|
||||
|
||||
|
||||
func _on_moving_state_physics_processing(delta: float) -> void:
|
||||
if player_controller._input_dir.length() == 0 and player_controller.velocity.length() < 0.5:
|
||||
player_controller.state_chart.send_event("onIdle")
|
||||
Reference in New Issue
Block a user