2D Top Down, enemies stacking on one another


Enemies are grouping up on top of one another.
It looks silly, and all of the projectiles are grouped up too.
Is there some easy way to either randomize their movement, or have them make some “mistakes” every once in a while?



Maybe you want to have a look at local avoidance: https://arongranberg.com/astar/docs/local-avoidance.php
There is a 2D example of this in the example scene called “2D RVO”.