Flocking Simulation: Boids (JavaScript)
In this project I fiddled around with a boids simulation, making them fly through space and underwater (using the three.js JavaScript framework). I run through some of the basic steering behaviours and how to combine them, building them up into something that looks complex and interesting. I also taking the flocking simulation and apply it to an underwater scene and an outer space scene, describing any tweaks and changes I make along the way.
Can't promise the code is bug free, but its all available online on github. Feel free to grab it, fork it, laugh at it, etc.
What's covered:
* Steering Behaviours
I'll go over the steering behaviours we used in this particular flocking simulation (separation/alignment/cohesion), how they're derived, and how they're combined.
* Underwater Scene
Using the working behaviours and boids from the first section, I threw together a small underwater scene with a few (poorly modelled) fish. I describe what tweaks I made to the flocking simulation and steering behaviours to get the behaviour I wanted.
* Space Scene
Again, took the existing flocking simulation and tried to apply it to a more "Battlestar Galactica" type of scene, with ships and explosions and stuff. Described a few of the tweaks and changes I applied.
Github: https://github.com/simondevyoutube/FlockingSimulation_Space
Wikipedia: https://en.wikipedia.org/wiki/Boids
Craig Reynolds: https://www.red3d.com/cwr/boids/
#flocking #boids #gamedevelopment
Видео Flocking Simulation: Boids (JavaScript) канала SimonDev
Can't promise the code is bug free, but its all available online on github. Feel free to grab it, fork it, laugh at it, etc.
What's covered:
* Steering Behaviours
I'll go over the steering behaviours we used in this particular flocking simulation (separation/alignment/cohesion), how they're derived, and how they're combined.
* Underwater Scene
Using the working behaviours and boids from the first section, I threw together a small underwater scene with a few (poorly modelled) fish. I describe what tweaks I made to the flocking simulation and steering behaviours to get the behaviour I wanted.
* Space Scene
Again, took the existing flocking simulation and tried to apply it to a more "Battlestar Galactica" type of scene, with ships and explosions and stuff. Described a few of the tweaks and changes I applied.
Github: https://github.com/simondevyoutube/FlockingSimulation_Space
Wikipedia: https://en.wikipedia.org/wiki/Boids
Craig Reynolds: https://www.red3d.com/cwr/boids/
#flocking #boids #gamedevelopment
Видео Flocking Simulation: Boids (JavaScript) канала SimonDev
Показать
Комментарии отсутствуют
Информация о видео
Другие видео канала
How Many AI Agents can JavaScript Handle?Coding Adventure: BoidsBig-O Notation, Time Complexity, and What Even Google Engineers Get WrongSpatial Hash Grids & Tales from Game DevelopmentHow do Boids Work? A Flocking SimulationThis is the BOMB to worry aboutBoids - The Emergence of FlocksC++ Ants SimulationProcedural Plant Generation with L-SystemsCoding Challenge #124: Flocking Simulation3D World Generation: Heightmap TutorialI Tried Making a 3D MMORPG Game in JavaScriptHow Birds Do the Thing - Smarter Every Day 234Coding Adventure: PortalsHow I Optimized My JavaScript Project (Complete Walkthrough) | Faster Spatial Hash GridsBoids Simulation - Murmuration. 100 000 boids using Unity ECSCoding Adventure: Ant and Slime SimulationsBlender Tutorial: Setting up a flocking systemFlocking like a Pro! Insider Tips and Tricks