Wandering Simulator
In 1986, Craig Reynolds developed an algorithm aiming to model the flocking behavior of birds, which remains a cult method used in flock simulations today. In my initial study, the bird-oids (boids) have no rules or limitations, just chilling randomly on the screen. I call this initial version Wandering Simulator. There are several reasons why this fundamental simulation is difficult in Grasshopper and Python, our parametric design interface. In Grasshopper (data flow modeling), pushing the back doors a bit is necessary to run an interactive and flowing simulation that needs loops. Firstly, I have to ensure that the GhPython component updates certain variables with a trigger inside a loop. This is something painful in a dataflow environment.
I have not yet been able to reach Reynolds’ algorithm or another intelligent flocking algorithm. However, this is a beginning and I think it’s promising. With only 25 lines of code, I managed to produce small creatures moving on the screen. In the future, I will add functions for detecting and reacting to each other and the obstacles. This can evolve into many interesting studies. This Grasshopper definition includes the first version of my flocking simulation study inside Rhinoceros CAD. It uses native Grasshopper components and one GhPython component. So, no add-ons are required to use it.
Since this is the beginning of a new project, it would be wise to wait for the upcoming versions. However, if you want to see and use this version for your projects, would you consider being my Patreon and downloading my Grasshopper file? Here is the link to my Patreon page, including the Wandering Simulator study file and more. Thank you for your support.