A Swift implementation of Craig Reynolds' "Steering Behaviors For Autonomous Characters" aka Boids.
This implementation includes the following behaviors:
- Separation
- Cohesion
- Alignment
- Bounding
- Wander
- Obstacle Avoidance (coming soon)
It uses SpriteKit for a 2D representation of the simulation.
This is a simplified and Swift-ified version of the AI I used to create the Pangea Safari ecosystem simulation game pictured here: