Fish Flock


Flocking simulation with fishes, using methods such as instancing and compute shaders for optimal performance.


by EMD Assets


★★★★ star rating
Price History +

Fish Flock is an easy-to-use asset that manage a shoal of fish. The fishes move in flock and keep themselves as a group and also avoiding to collide with each other as they swim.


Notes:

  • For MacOS users, the asset will need to use the Metal renderer to use Compute Shaders otherwise you can't use the GPU computation mode.

Features:

  • Follow random generated points or a specific target.
  • Instancing or prefab instantiation for the fishes
  • Process the fishes through a Compute Shader (GPU) or in the CPU - Collision Avoidance against unity built-in colliders.
  • Acceleration, speed, force, turn speed, transform scale and neighbour distance customization through inspector.
  • Includes one simple shader that simulates the swimming movement of a fish.
  • Multiple flocking groups on a scene.
  • Shaders included supports HDRP/URP.

-------------------------------------------------------


Quick setup for HDRP/HDRP Projects


Credits:

Some models of the Ocean Sample scene are made by EdwinRC at Sketchfab