How to I make a group of objects repel each other (without Rigidbody)?

So I made a game with enemies that chase the player. But oftentimes they can clog together and that looks really messy. I want them to just repel against each other using Vector3.MoveTowards (like I did with other objects), but I can’t find an efficient way to keep track of them without lagging and crashing the game.
Is there a solution for this?

Look up “boids” algorithm.

1 Like