1 创建ZoneShape区域,

修改项目设置Engine/ZoneGraph

image

 然后,再Build ZoneGraph

2 创建MassConfigAsset资产

image

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 创建状态树资产

image

 

posted on 2025-08-15 16:03  偷懒的阿贤  阅读(20)  评论(0)    收藏  举报