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.
Working with agents and obstacles - Unity Tutorial
From the course: Cert Prep: Unity Certified Associate Game Developer Scripting with C#
Working with agents and obstacles
- [Instructor] In the previous movie, we looked at how we could create an enemy character that would follow the player intelligently. But of course, in creating that character we had to generate a navigation mesh and a navigation mesh depends on our environment being completely static. But what happens in cases where maybe we want to have a sliding door that opens and closes and moves around and that's going to have an effect on whether the enemy character can reach us and how it can chase us. In these cases, we want to use NAV mesh obstacles let's see how that works. I'm going to create a completely new cube object inside the scene that's going to act as a door to do that I'll choose game object, 3D object and then select cube. I'll bring that into the scene into this passage way area over here inside the scene let's bring the cube up further into the scene here. I'm going to be increasing the size of this cube too to…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.