2
0
Эх сурвалжийг харах

Apply gravity to Red Robot while idle (#145)

Aidan Rhoden 2 жил өмнө
parent
commit
fab68bcd7e

+ 1 - 0
enemies/red_robot/red_robot.gd

@@ -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: