This is a Boids simulation. Press 1 to reset the variables. Each of the variables function are listed below. Target Speed = How fast they are trying to travel Resolve = How fast they transition to the target speed Range = Distance they detect one another Separation = How much they try to avoid one another Cohesion = How much they try to group up Alignment = How much they try to face the same direction Fade = how fast the trails fade (per frame)
Credit to @griffpatch for almost everything