- Unity Artificial Intelligence Programming
- Dr. Davide Aversa Aung Sithu Kyaw Clifford Peters
- 148字
- 2021-06-10 18:57:46
The sensor system
Our AI characters need to know about their surroundings and the world they are interacting with in order to make a particular decision. Such information may be the following:
- The position of the player: This is used to decide whether to attack or chase, or keep patrolling
- Buildings and objects nearby: This is used to hide or take cover
- Player's health and its own health: This is used to decide whether to retreat or advance
- Location of resources on the map in a Real-Time Strategy game (RTS): This is used to occupy and collect resources required for updating and/or producing other units
As you can see, choosing the right method to collect game information can vary a lot depending on the type of game we are trying to build. In the following sections, we look at two basic strategies: polling and message (event) systems.
推薦閱讀
- EJB 3.1從入門到精通
- Web安全防護(hù)指南:基礎(chǔ)篇
- 物聯(lián)網(wǎng)安全:理論、實(shí)踐與創(chuàng)新
- Hands-On Industrial Internet of Things
- Django 2 by Example
- Learning Karaf Cellar
- 物聯(lián)網(wǎng)通信技術(shù)
- 網(wǎng)管員必讀:網(wǎng)絡(luò)管理(第2版)
- 基于性能的保障理論與方法
- 互聯(lián)網(wǎng)+思維與創(chuàng)新:通往未來的+號
- Hands-On Microservices with Node.js
- 沖擊:5G如何改變世界
- Building RESTful Web Services with .NET Core
- SEO攻略:搜索引擎優(yōu)化策略與實(shí)戰(zhàn)案例詳解
- 智能物聯(lián)網(wǎng):區(qū)塊鏈與霧計(jì)算融合應(yīng)用詳解