Getting started with the zombie Prefab

The zombie character will appear many times throughout a level, and other levels. For this reason, we'll build one zombie in the Viewport and, from that, create a Prefab. This may be reused as many times as needed. To start, drag and drop the zombie from the Project panel into the Scene, and set its Scale to 1.3 for all axes:

Adding a zombie character to the Scene and setting object Scale

Next, add a Nav Mesh Agent to the zombie, configuring it for a navigation mesh. Set the Radius to 0.26, fitting the Cylinder collider tightly to the character.

This volume approximates the character on the navigation ...

Get Mastering Unity 2017 Game Development with C# - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.