I watched King Hu’s A Touch of Zen nearly a year ago but I think about it often enough that I could sworn it was just last month. Some films are like that. If you like wuxia films with haunted and beautiful landscapes then I highly recommend it.
Basic models of flocking behavior are controlled by three simple rules: 1) separation: avoid crowding neighbours (short range repulsion); 2) alignment: steer towards average heading of neighbors; 3) cohesion: steer towards average position of neighbors (long range attraction). With these three simple rules, the flock moves in an extremely realistic way.