Added gravity back to AI (Because I guess I removed it at some point?)

This commit is contained in:
Paul Black 2022-03-25 00:29:20 -06:00
parent 41d33f175d
commit 537628f2b7

View file

@ -46,6 +46,7 @@ func _physics_process(delta):
_walk_towards_player() _walk_towards_player()
$CollisionShapeBottom.rotation.y = lerp_angle($CollisionShapeBottom.rotation.y, atan2(velocity.x, velocity.z), delta * angular_acceleration) $CollisionShapeBottom.rotation.y = lerp_angle($CollisionShapeBottom.rotation.y, atan2(velocity.x, velocity.z), delta * angular_acceleration)
_look_at_player() _look_at_player()
velocity.y -= gravity * delta
func _bullet_fire(): func _bullet_fire():
if player != null: if player != null: