自然群体AI
NPC 使用 NavMeshAgent 执行自主、自然的群体行为。
概述
组件
CrowdNPC — MonoBehaviour。需要 NavMeshAgent。
CrowdBehaviorType 枚举
提示
- 降低
BehaviorChangeCooldown让行为更随机,增大则更有目的性。 - 与 WorldTimeSystem 联动,夜晚增加 Idle 比例。
- 与 EmotionController 结合,根据情感改变移动速度。
NPC 使用 NavMeshAgent 执行自主、自然的群体行为。
CrowdNPC — MonoBehaviour。需要 NavMeshAgent。
BehaviorChangeCooldown 让行为更随机,增大则更有目的性。