Removed delta because it made the enemy super slow
This commit is contained in:
@ -17,7 +17,7 @@ func _process(delta):
|
||||
func _physics_process(delta):
|
||||
var current_location = global_transform.origin
|
||||
var next_location = nav_agent.get_next_path_position()
|
||||
var new_velocity = (next_location - current_location).normalized() * SPEED * delta
|
||||
var new_velocity = (next_location - current_location).normalized() * SPEED
|
||||
|
||||
velocity = new_velocity
|
||||
move_and_slide()
|
||||
|
||||
Reference in New Issue
Block a user