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

Polling

One method to collect such information is polling. Polling consists of directly checking for the preceding information in the FixedUpdate method of our AI character. An AI character can just poll the information they are interested in from the game world, do the checks, and take action accordingly. Polling works great if there aren't too many things to check. To make this method more efficient, we may program some characters to poll the world states with different polling rates so that we do not stop polling at every frame for every character. However, as soon as the game gets bigger, polling is not enough anymore. Therefore, in more massive games with more complex AI systems, we need to deploy an event-driven method using a global messaging system.

主站蜘蛛池模板: 南安市| 洪洞县| 微山县| 中江县| 嘉义县| 阳谷县| 静宁县| 横峰县| 和田市| 平昌县| 沂水县| 安塞县| 五寨县| 永平县| 鹿邑县| 专栏| 新竹县| 广宁县| 眉山市| 上栗县| 峨边| 紫金县| 开江县| 漳州市| 酉阳| 华亭县| 惠来县| 新野县| 鄄城县| 永登县| 莱西市| 岫岩| 海宁市| 德州市| 乐昌市| 平果县| 育儿| 清水县| 油尖旺区| 开江县| 资源县|