{"id":15746111,"url":"https://github.com/suboptimaleng/boids","last_synced_at":"2025-03-13T12:32:30.134Z","repository":{"id":187553530,"uuid":"669841772","full_name":"SuboptimalEng/boids","owner":"SuboptimalEng","description":"🐟 Simulating boids in Unity.","archived":false,"fork":false,"pushed_at":"2023-08-27T14:55:29.000Z","size":1918,"stargazers_count":8,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-26T19:52:10.545Z","etag":null,"topics":["boids","boids-algorithm","boids-simulation","csharp","gamedev","unity","unity-2d","unity-3d","unity2d","unity3d"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SuboptimalEng.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-07-23T15:51:58.000Z","updated_at":"2024-09-26T08:25:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"32fa628e-255a-4385-80f3-6a32919e2caa","html_url":"https://github.com/SuboptimalEng/boids","commit_stats":null,"previous_names":["suboptimaleng/boids"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SuboptimalEng%2Fboids","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SuboptimalEng%2Fboids/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SuboptimalEng%2Fboids/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SuboptimalEng%2Fboids/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SuboptimalEng","download_url":"https://codeload.github.com/SuboptimalEng/boids/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243405672,"owners_count":20285793,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["boids","boids-algorithm","boids-simulation","csharp","gamedev","unity","unity-2d","unity-3d","unity2d","unity3d"],"created_at":"2024-10-04T04:41:24.365Z","updated_at":"2025-03-13T12:32:30.128Z","avatar_url":"https://github.com/SuboptimalEng.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🐟 Boids\n\nBoids is an algorithm developed by Craig Reynolds in 1986. It aims to emulate the flocking behavior of birds by applying three simple rules: separation, alignment, and cohesion.\n\n- YouTube Video: [Coding Boids (Flocking Simulation)](https://www.youtube.com/watch?v=MSZ7nqqgVKc)\n\n  \u003cimg src=\"/_thumbnails/boids-02.png\"\u003e\n\n## Notes\n\n- completed:\n  - separation, alignment, cohesion for boid simulation\n  - script for updating simulation settings live\n  - debug view to show show range of each phase\n  - color picker and randomizer for each boid\n  - custom attribute `RangeWithStep` for floats\n  - script to allow camera movement in play mode\n  - multiple boid prefabs (sphere, cube, triangle shader)\n  - implement simulation algorithm in a compute shader\n- research:\n  - interactable grass\n  - simulating boids in 3D\n  - adding a trail for each boid\n  - grouping boids based on coloring\n  - how to create a debug view in shader\n  - following objects and avoiding edges\n  - partitioning system for boid detection\n  - visualizing all boids in a single shader\n  - normalizing separation + alignment for a more accurate simulation\n\n## Resources\n\n- [Boids by Craig Reynolds](https://www.red3d.com/cwr/boids/)\n- [Ben Eater's Boids Simulation](https://eater.net/boids)\n- [Daniel Shiffman's Boids Simulation](https://processing.org/examples/flocking.html)\n- [Sebastian Lague's Boids Coding Adventure](https://www.youtube.com/watch?v=bqtqltqcQhw)\n- [David Zulic's Custom Debug Draw Tutorial for Unity](https://medium.com/@davidzulic/unity-drawing-custom-debug-shapes-part-1-4941d3fda905)\n- [Catlike Coding's Creating a Procedural Mesh Tutorial](https://catlikecoding.com/unity/tutorials/procedural-meshes/creating-a-mesh/)\n\n## License\n\nShield: [![CC BY-NC-SA 4.0][cc-by-nc-sa-shield]][cc-by-nc-sa]\n\nThis work is licensed under a\n[Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License][cc-by-nc-sa].\n\n[![CC BY-NC-SA 4.0][cc-by-nc-sa-image]][cc-by-nc-sa]\n\n[cc-by-nc-sa]: http://creativecommons.org/licenses/by-nc-sa/4.0/\n[cc-by-nc-sa-image]: https://licensebuttons.net/l/by-nc-sa/4.0/88x31.png\n[cc-by-nc-sa-shield]: https://img.shields.io/badge/License-CC%20BY--NC--SA%204.0-lightgrey.svg\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuboptimaleng%2Fboids","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsuboptimaleng%2Fboids","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuboptimaleng%2Fboids/lists"}