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

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.

主站蜘蛛池模板: 平舆县| 巨鹿县| 新密市| 洪湖市| 宁陵县| 沾化县| 观塘区| 烟台市| 哈尔滨市| 朔州市| 通道| 西青区| 大渡口区| 汉寿县| 邢台县| 井研县| 阿瓦提县| 贵溪市| 旌德县| 桃江县| 鄂托克前旗| 南京市| 二连浩特市| 安图县| 惠安县| 额济纳旗| 上犹县| 青岛市| 大理市| 昆山市| 阿荣旗| 桦南县| 夏津县| 洛南县| 承德市| 陈巴尔虎旗| 洪泽县| 五寨县| 金山区| 酒泉市| 横山县|