"Flocks" is an interactive 3d graphics code art. Viewers can design their own paper plane with the drawing palette and apply the design. Viewers can explore the 3D space in two ways. (1) Viewers can either see the paper plane flocks flying autonomously in 3rd person perspective, (2) or navigate through the virtual landscape with keyboard control in immersive 1st person perspective of the designed paper plane.
"Flocks" was a project to simulate the natural flocking behaviors of the birds. Through project, 3D version implementation of autonomous agents in "The Nature of Code
" by Daniel Shiffman. The flocks of paper planes fly in a herd yet avoiding the collision through three steering forces :
: check the nearby neighborhood and steer away to avoid collision
: calculate the average velocity of the neighborhood to make them head the same direction
: steer towards to the center of the neighborhood to say within the group
Three forces are applied to the flocks and control the autonomous flight of the paper planes.