Added gravity back to AI (Because I guess I removed it at some point?)
This commit is contained in:
parent
41d33f175d
commit
537628f2b7
1 changed files with 1 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue