AdriRed [Lexaloffle Blog Feed]https://www.lexaloffle.com/bbs/?uid=40151 Flocking simulation <p> <table><tr><td> <a href="/bbs/?pid=145900#p"> <img src="/bbs/thumbs/pico64_flocking-0.png" style="height:256px"></a> </td><td width=10></td><td valign=top> <a href="/bbs/?pid=145900#p"> Flocking simulation</a><br><br> by <a href="/bbs/?uid=40151"> AdriRed</a> <br><br><br> <a href="/bbs/?pid=145900#p"> [Click to Play]</a> </td></tr></table> </p> <p>This is a work in progress simulation or particle system, based on The Coding Train video Coding Challenge #124 <a href="https://www.youtube.com/watch?v=mhjuuHl6qHM">https://www.youtube.com/watch?v=mhjuuHl6qHM</a></p> <p>Controls:</p> <ul> <li>If left mouse button is clicked, the particles will avoid the mouse.</li> </ul> <p>I'm open to any change to boost the performance of the simulation (Quadrtree?). I plan to use it in a fishtank wallpaper or so, if anyone finds another use, feel free to play with the code!</p> https://www.lexaloffle.com/bbs/?tid=141488 https://www.lexaloffle.com/bbs/?tid=141488 Sat, 06 Apr 2024 16:43:42 UTC