From 537628f2b734c0513a0f3a5e8825cc374ca0edd9 Mon Sep 17 00:00:00 2001 From: Techwizz Date: Fri, 25 Mar 2022 00:29:20 -0600 Subject: [PATCH] Added gravity back to AI (Because I guess I removed it at some point?) --- Objects/Ai-tank/tank00.gd | 1 + 1 file changed, 1 insertion(+) diff --git a/Objects/Ai-tank/tank00.gd b/Objects/Ai-tank/tank00.gd index 1ddf5db..fc46ca5 100644 --- a/Objects/Ai-tank/tank00.gd +++ b/Objects/Ai-tank/tank00.gd @@ -46,6 +46,7 @@ func _physics_process(delta): _walk_towards_player() $CollisionShapeBottom.rotation.y = lerp_angle($CollisionShapeBottom.rotation.y, atan2(velocity.x, velocity.z), delta * angular_acceleration) _look_at_player() + velocity.y -= gravity * delta func _bullet_fire(): if player != null: