Hey there, I've been working on a 2D space shooter for a game jam idea that and working. Simple premise, the player has to defeat the waves of enemies to progress. I've managed to make my enemies follow the player without any issues, however, what I noticed was that the enemies don't interact very well with one another and I would like to make it so that they would avoid one another. I started to look into the flocking algorithm which Craig Reynolds boids works off of to find a solution to my issue. While I *think* I understand it, I'm struggling on how to convert this into c# script for my enemies. I understand I'm going to have to have a controller which keeps track of each enemy that has been spawned. From there, each enemy needs to know if they are going to bump into anyone in the future of the same type and if so , change its direction of travel. I looked into using casting a ray out to the front of the enemy ships however I struggled with this as well. Anyone able to help explain / guide me through this? Many thanks in advance.