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

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.

主站蜘蛛池模板: 禹城市| 宁化县| 茌平县| 甘孜| 大埔区| 珠海市| 启东市| 乐陵市| 东山县| 玛沁县| 南召县| 舒兰市| 普定县| 青浦区| 辽宁省| 农安县| 水城县| 辉县市| 朝阳市| 会东县| 乡宁县| 北碚区| 赤城县| 电白县| 称多县| 凤城市| 武宁县| 永宁县| 广灵县| 河曲县| 沛县| 桃源县| 惠东县| 台山市| 和平县| 长沙县| 定远县| 莆田市| 集贤县| 辛集市| 兰州市|