A downloadable game for Windows, macOS, and Linux

A simple flocking demo built in Unity

These little fishes follow three simple rules:

  1. Separation - avoid crowding neighbors (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, creating complex motion and interaction that would be extremely hard to create otherwise.

In addition, there are red obstacles that you can add to further guide the flock however you want.

WebGL Build

Unity Project

Download

Download
flocking-windows-x64.zip 16 MB
Download
flocking-linux-universal.zip 34 MB
Download
flocking-macosx-universal.zip 29 MB

Comments

Log in with itch.io to leave a comment.

(+1)

Loved it, very calming, thanks !

Wow, glad you liked it!