{ "title": "Flocking Simulation", "description": "In this coding challenge, I create a flocking simulation in JavaScript based on Craig Reynolds \"boids\" algorithm.", "videoNumber": "124", "videoId": "mhjuuHl6qHM", "nebulaSlug": "the-coding-train-coding-challenge-124-flocking-simulation", "date": "2018-12-11", "languages": ["Processing", "p5.js"], "topics": ["flocking", "creative code", "autonomous agent"], "canContribute": true, "relatedChallenges": ["69-evolutionary-steering-behaviors"], "timestamps": [ { "time": "0:00", "title": "Introduction to flocking!" }, { "time": "2:07", "title": "What are boids?" }, { "time": "2:33", "title": "Creating a system of boids" }, { "time": "7:06", "title": "Discussing the flocking algorithm" }, { "time": "7:38", "title": "Alignment!" }, { "time": "21:48", "title": "Cohesion!" }, { "time": "28:37", "title": "Separation!" }, { "time": "37:00", "title": "Things to try!" } ], "codeExamples": [ { "title": "Flocking Simulation", "description": "Simulation of the flocking behavior of autonomous agents", "image": "flocking.jpg", "urls": { "p5": "https://editor.p5js.org/codingtrain/sketches/ry4XZ8OkN", "processing": "https://github.com/CodingTrain/Coding-Challenges/tree/main/124_Flocking_Boids/Processing" } } ], "groupLinks": [ { "title": "References", "links": [ { "icon": "📄", "title": "Craig Reynolds' Paper on Boids", "url": "https://www.red3d.com/cwr/boids/", "description": "" }, { "icon": "📕", "title": "Autonomous Agents - Nature of Code", "url": "https://natureofcode.com/book/chapter-6-autonomous-agents/", "description": "The link to the chapter in the online version of NOC" }, { "icon": "📘", "title": "The Computational Beauty of Nature", "url": "https://mitpress.mit.edu/9780262561273/the-computational-beauty-of-nature/", "description": "" } ] }, { "title": "Videos", "links": [ { "icon": "🌐", "title": "Original Boids Simulation", "url": "https://youtu.be/86iQiV3-3IA", "description": "Simulation created by Craig Reynolds in 1986" }, { "icon": "➡️", "title": "Vectors - The Nature of Code", "url": "/tracks/the-nature-of-code-2/noc/1-vectors/1-what-is-a-vector", "description": "The first video from the Vector series in The Nature of Code (2020) playlist" }, { "icon": "🪂", "title": "Autonomous Steering Agents", "url": "/tracks/the-nature-of-code-2/noc/5-autonomous-agents/1-steering-agents", "description": "The introductory video of the series exploring the chapter on autonomous agents in Nature of Code" }, { "icon": "🔴", "title": "Coding Train Live 162", "url": "https://youtu.be/qtUV-DoSOpk?t=1350s", "description": "Live Stream with Flocking Simulation." } ] } ], "credits": [ { "title": "Editing", "name": "Mathieu Blanchette" }, { "title": "Animations", "name": "Jason Heglund" } ] }