Apply gravity to Red Robot while idle (#145)

This commit is contained in:
Aidan Rhoden
2022-10-10 09:00:47 -05:00
committed by GitHub
parent f7951bc373
commit fab68bcd7e

View File

@@ -143,6 +143,7 @@ func _physics_process(delta):
if not player:
animation_tree["parameters/state/current"] = 0 # Go idle.
velocity = move_and_slide(gravity * delta, Vector3.UP)
return
if state == State.APPROACH: