Flocking

Tutorial

intermediate

+10XP

50 mins

(158)

Unity Technologies

Flocking

In this tutorial students will learn the about the three rules used for simulating flocking and begin setting up a project to create a flocking fish scene. Next, students will program their fish with more flocking mechanisms to get them to follow the simulated rules and keep them confined in a boundary. Finally, students will complete the flocking simulation and add obstacles to the fish tank.

Resources

Languages available:

1. Flocking Part 1: Setting up Fish Agents

In this tutorial, students will setup a scene with animated fish and spawning functionality before moving onto the next tutorial which will implement flocking.

2. Flocking Part 2: A Basic Schooling Behaviour

In this tutorial, students will get the basic flocking algorithm working to create a simple school of fish.

3. Flocking Part 3: Adding goal locations and speed variety

In this tutorial, students will learn how to add variety to the fish schooling by adding moving goal locations and variable speeds.

4. Flocking Part 4: Containing Fish in a Tank

In this tutorial, students will learn how to add a bounds to the flocking simulation to keep fish contained in an area.

Complete this Tutorial