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: - The asset only supports Unity's
built-in renderer currently, it doesn't support any of the new rendering pipelines.
- 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.
Quick setup for
HDRP/HDRP Projects