top of page

Improved Falling Leaf Scene with Faux Flocking

Updated: Oct 27, 2021

See the setch here


This scene is an improvement of my sketch from last week of falling leaves. It uses classes to define random variables once for every run cycle.


I watched Dan's tutorial on flocking and thought it was too complicated, so I made my own very simple version of flocking that maps the position of the mouse to a velocity. As you move the mouse right to left, the leaves will move in a different direction. As you move the mouse up and down, the leaves will move slower or faster, and sometimes the wind will blow them away!


I was trying to figure out how to make the leaves pile up at the bottom of the screen, but couldn't figure out how to make them static. Hmmm....


Here's one example of the leaf pile not working:



27 views1 comment

Recent Posts

See All
bottom of page