Coding Challenge #124: Flocking Simulation



In this coding challenge, I create a flocking simulation in JavaScript based on Craig Reynolds “boids” algorithm.

💻https://thecodingtrain.com/CodingChallenges/124-flocking-boids
💻https://editor.p5js.org/codingtrain/sketches/ry4XZ8OkN

🔗Craig Reynolds Boids: https://www.red3d.com/cwr/boids/
🔗Nature of Code: https://natureofcode.com/book/chapter-6-autonomous-agents/
🔗Computational Beauty of Nature: https://mitpress.mit.edu/books/computational-beauty-nature

🎥Craig Reynolds – Original 1986 Boids simulation: https://youtu.be/86iQiV3-3IA
🎥Combining Steering Behaviors https://youtu.be/IoKfQrlQ7rA
🎥Vectors: https://youtu.be/mWJkvxQXIa8

🚂Website: http://thecodingtrain.com/
💖Patreon: https://patreon.com/codingtrain
🛒Store: https://www.designbyhumans.com/shop/codingtrain/
📚Books: https://www.amazon.com/shop/thecodingtrain

🎥Coding Challenges: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
🎥Intro to Programming: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA

🔗 p5.js: https://p5js.org
🔗 Processing: https://processing.org

source

Reply

Do NOT follow this link or you will be banned from the site!