---
title: "Crowd Simulation"
content_type: course
url: "https://learn.unity.com/course/crowd-simulation?language=en"
language: en
difficulty: intermediate
duration_minutes: 105
unity_version:
  - "2021.3"
supported_unity_versions:
  - name: "2021.3"
    url: "https://learn.unity.com/course/crowd-simulation.md?language=en&version=2021.3"
  - name: "2019.4"
    url: "https://learn.unity.com/course/crowd-simulation.md?language=en&version=2019.4"
  - name: "2019.3"
    url: "https://learn.unity.com/course/crowd-simulation.md?language=en&version=2019.3"
  - name: "2019.2"
    url: "https://learn.unity.com/course/crowd-simulation.md?language=en&version=2019.2"
  - name: "2019.1"
    url: "https://learn.unity.com/course/crowd-simulation.md?language=en&version=2019.1"
last_updated: "2026-08-04T14:20:41.000Z"
---

# Crowd Simulation

In this project you will be working with a high number of agents to simulate crowd behaviour.  You will discover how patterns of movement can be formed from the simpliest of rules that mimic crowd behaviour in the real world.  By the end you will have created a crowded city street scene with humanoid characters walking along a pavement and avoiding each other as well as a simulation of a school of fish.

## Contents

- [Moving As One](https://learn.unity.com/course/crowd-simulation/tutorial/moving-as-one?language=en&version=2021.3) ([md](https://learn.unity.com/course/crowd-simulation/tutorial/moving-as-one.md?language=en&version=2021.3)) — Discover key principles of crowd behavior and observe simple simulations that illustrate how group dynamics emerge.
- [Creating a City Crowd](https://learn.unity.com/course/crowd-simulation/tutorial/creating-a-city-crowd?language=en&version=2021.3) ([md](https://learn.unity.com/course/crowd-simulation/tutorial/creating-a-city-crowd.md?language=en&version=2021.3)) — Build a crowded city scene by configuring a NavMesh and scripting animated humanoid agents along sidewalks.
- [Fleeing](https://learn.unity.com/course/crowd-simulation/tutorial/fleeing-i?language=en&version=2021.3) ([md](https://learn.unity.com/course/crowd-simulation/tutorial/fleeing-i.md?language=en&version=2021.3)) — Add a hazardous obstacle to a crowd simulation and script agents to flee for a set duration.
- [Flocking](https://learn.unity.com/course/crowd-simulation/tutorial/flocking?language=en&version=2021.3) ([md](https://learn.unity.com/course/crowd-simulation/tutorial/flocking.md?language=en&version=2021.3)) — Apply flocking rules to program a school of fish, confine them to a tank, and add obstacles to the simulation.
