In this 3 part tutorial series I will show you how to setup up a basic sidewalk crowd scene with a street and crossings where the agents will stick to the sidewalk and only cross the street where they are allowed.
- Part 1 sets up the scene and explains area costs.
- Part 2 adds code to control the speed of the agent based on the corners it needs to take to stay on its path.
- Part 3 demonstrates how to change the cost of an area with code to sometimes allow agents to walk in areas where they couldn’t before.
In this 3 part tutorial (with a Halloween theme) I’ll show you how to create a simple soccer game using navmesh agents that chase a ball around a field as well as line up shots and kick. This tutorial will demonstrate the basics of setting up a navmesh, destination setting and vector mathematics for calculating kicking direction and goal positions.