Inspired by the movement of the fish at Xel-Ha Park. Since fish likely don't care about fish that are further away, this simulation uses a storage method that allows calculations to be made regarding fish and only their closer neighbors. The regions the screen is separated into can be observed by toggling Region Highlighting. Fish behavior is dictated as follows: fish try to orient to be like their nearest neighbor; fish accelerate forward in the direction they are facing; fish move away from fish that are too close.
Controls: Left click and hold to scare the fish. More options are available in the sidebar.
Close