1 创建ZoneShape区域,
修改项目设置Engine/ZoneGraph

然后,再Build ZoneGraph
2 创建MassConfigAsset资产

Movement|Agent Movement Sync负责AI移动能力;Avoidance负责自动避让能力;Smooth Orientation|Agent Orientation Sync负责AI往Forward方向能力;Crowd Visualization|CrowdMember负责AI的显示能力;Steering负责转向能力(这个转向是指可以在非直线的路径上运动);
3 创建MassSpawn,将资产设置,ZoneGraph设置好
4 创建MassAIActor,并在Actor上增加组件MassAgent
5 创建状态树资产

浙公网安备 33010602011771号