Flocking and Boids Simulation
The video shows my experimentation with Flocking and Boids Simulation in Unity2D using Coroutines. The rules include Cohesion, Alignment, Separation, Obstacle Avoidance and Flee from Predator.
The below video shows the same simulation using Unity Job System.
Find the source codes in the GitHub repository https://github.com/shamim-akhtar/flocking-unity
Contact me
Read My Other Tutorials
- Implement Constant Size Sprite in Unity2D
- Implement Camera Pan and Zoom Controls in Unity2D
- Implement Drag and Drop Item in Unity
- Graph-Based Pathfinding Using C# in Unity
- 2D Grid-Based Pathfinding Using C# and Unity
- 8-Puzzle Problem Using A* in C# and Unity
- Create a Jigsaw Puzzle Game in Unity
- Implement a Generic Pathfinder in Unity using C#
- Create a Jigsaw Puzzle Game in Unity
- Generic Finite State Machine Using C#
- Implement Bezier Curve using C# in Unity
- Create a Jigsaw Tile from an Existing Image
- Create a Jigsaw Board from an Existing Image
- Solving 8 puzzle problem using A* star search
- A Configurable Third-Person Camera in Unity
- Player Controls With Finite State Machine Using C# in Unity
- Finite State Machine Using C# Delegates in Unity
- Enemy Behaviour With Finite State Machine Using C# Delegates in Unity
- Augmented Reality – Fire Effect using Vuforia and Unity
- Implementing a Finite State Machine Using C# in Unity
- Solving 8 puzzle problem using A* star search in C++
- What Are C# Delegates And How To Use Them
- How to Generate Mazes Using Depth-First Algorithm
A committed and optimistic professional who brings passion and enthusiasm to help motivate, guide and mentor young students into their transition to the Industry and reshape their careers for a fulfilling future. The past is something that you cannot undo. The future is something that you can build.
I enjoy coding, developing games and writing tutorials. Visit my GitHub to see the projects I am working on right now.
Educator | Developer | Mentor
The Github link is 404 and I can’t find this in any of your repos. Is this code no longer available?
Hi Sean,
It is available now. I made it private for a few days on purpose and now it is back to the public.
regards,
Shamim
Cool! I created a simulation of this here using only compute shaders, I wanted to know more about how you used the jobs. the repository is closed again?
Hi, I made the repo public again. It was changed to private for a couple of months.
Please note that I didn’t verify it with any best versions of unity.
Thank you.