From ba5c6fb244cd579b8c91a5a2dc5a130f5a849db6 Mon Sep 17 00:00:00 2001 From: dusoleil Date: Sat, 23 Jul 2022 17:31:29 -0400 Subject: Little bit of gravity for chickens --- Chicken.gd | 2 ++ 1 file changed, 2 insertions(+) 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 -- cgit v1.2.3