summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Chicken.gd2
1 files changed, 2 insertions, 0 deletions
diff --git a/Chicken.gd b/Chicken.gd
index 5d6e9ec..31c6520 100644
--- a/Chicken.gd
+++ b/Chicken.gd
@@ -21,6 +21,8 @@ func roll_die(chance):
return (randf() * 100) <= chance
func _physics_process(delta):
+ if !is_on_floor():
+ move_and_slide(Vector3.DOWN, Vector3.UP)
if chasing:
state_chasing(delta)
return