mirror of
https://github.com/godotengine/tps-demo.git
synced 2026-01-01 01:48:39 +03:00
Apply gravity to Red Robot while idle (#145)
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user