From the course: Cert Prep: Unity Certified Associate Game Developer Scripting with C#

Unlock the full course today

Join today to access over 24,400 courses taught by industry experts.

Building a navigation mesh

Building a navigation mesh

- [Instructor] In the preceding movie, we established the foundations of our enemy finite state machine. We have fundamentally three separate States, the enemy could be patrolling the level looking for the player, they could be chasing the player if they've spotted them, and if the enemy is near enough to the player and they've spotted them, they could be attacking the player. These are the three major States. Now right now, we don't have our behaviors in place, we need to start with that, and to get started at creating these behaviors, the first thing we need to do is to begin with our first level of intelligence for the enemy NPC. In this case, we have a layout here for our environment. You can see the floor and the walls. Now, if this NPC is going to be chasing the player and moving intelligently, they need to exhibit real-world behaviors. One of those behaviors is, as this enemy character moves around the scene,…

Contents