Earlier I made a pathfinding and navigation mechanic to one of my enemies, but this enemy doesn’t work properly and it’s probably because I made it look at the player, it mostly just avoids the player kinda.
what is the problem here?
dir = to_local() looks a bit strange to me. I’d rather use var dir := global_position.direction_to(nav_agent.get_next_path_position()), as I wouldn’t want the rotation of the enemy to change the direction unexpectedly.
