AI Navigation in Unity

Описание к видео AI Navigation in Unity

In this video we cover how to get non player characters to move around your environment using a Navigation Mesh baked into your environment and the Nav Mesh Agent component. We discuss defining terrain cost, creating Off Mesh Links, and how to use Nav Mesh Obstacles.

In addition, we discuss how to set the destination of your agent through code, how to set up a waypoint patrol system, and how to detect and chase a player before losing interest and returning back to the waypoints.

XRTerra Links:
Programs and Courses: http://www.xrterra.com/programs
Newsletter Signup: https://www.xrterra.com/mailing-list-...

00:00 Intro
00:57 Installing AI Navigation Package
01:47 Scene Setup
03:40 Agent Types
05:35 Nav Mesh Surface
06:20 Object Collection
06:52 Baking the Nav Mesh and Visualizing
07:25 Baking for different Agent Types
08:35 Creating Nav Mesh Agent
09:57 Create Follow Target Script
10:49 using UnityEngine.AI;
11:37 NavMeshAgent.SetDestination()
12:23 Target sphere
13:07 Testing Follow Target
13:56 Path Visualization Gizmo
14:26 Agent Speed
15:38 Agent Acceleration
16:19 Agent Angular Speed
17:08 Agent Stopping Distance
19:05 Navigation Areas
20:20 Nav Mesh Modifier
21:31 Creating Navigable Layer
22:50 Testing out Difficult Terrain Area
23:35 Off Mesh Link
26:43 Generated Drop Height Links
27:47 Testing Drop Height Links
28:15 Generated Jump Distance Links
30:07 Testing Jump Distance Links
30:37 Nav Mesh Obstacles
32:46 Carving out of the Nav Mesh
35:09 Patrol Script
40:36 Waypoint Setup
41:58 Testing Waypoints
43:11 Explaining Target Trigger Detection
45:02 Player Detector Script
46:22 Testing Player Detection
47:00 Chasing the Player
50:34 Losing the Player
53:48 Testing Losing the Player
54:52 Outro

Instructor: Gregory Osborne

Комментарии

Информация по комментариям в разработке