官术网_书友最值得收藏!

Path following and steering

Sometimes, we want our AI characters to roam around in the game world, following a roughly-guided or thoroughly-defined path. For example, in a racing game, the AI opponents need to navigate the road. In an RTS game, your units need to be able to get from wherever they are to the location you tell them navigating through the terrain and around each other.

To appear intelligent, our agents need to be able to determine where they are going, and if they can reach that point, they should be able to route the most efficient path and modify that path if an obstacle appears as they navigate. As you'll learn in later chapters, even path following and steering can be represented via a finite state machine. You will then see how these systems begin to tie in.

In this book, we will cover the primary methods of pathfinding and navigation, starting with our own implementation of an A* Pathfinding System, followed by an overview of Unity's built-in Navigation Mesh (NavMesh) feature.

主站蜘蛛池模板: 长宁县| 嫩江县| 汤原县| 万年县| 含山县| 孝感市| 资阳市| 搜索| 弥渡县| 寿光市| 潞城市| 光山县| 南安市| 浦东新区| 东辽县| 山阴县| 龙陵县| 巴彦淖尔市| 刚察县| 贡山| 连南| 武宣县| 西乡县| 伊吾县| 洛川县| 永和县| 金华市| 梓潼县| 共和县| 闸北区| 莲花县| 壤塘县| 集安市| 达尔| 高台县| 晋中市| 台前县| 乌鲁木齐县| 泾源县| 永和县| 宿州市|