Natural Crowd AI
NPCs perform autonomous, natural crowd behaviors using NavMeshAgent.
Overview
Component
CrowdNPC — MonoBehaviour. Requires a NavMeshAgent on the same GameObject.
CrowdBehaviorType Enum
Behavior Details
Example
Basic Usage
Shop Setup
For BrowseShop to work, add the Shop tag to shop objects.
Tips
- Lower
BehaviorChangeCooldownfor more erratic behavior, higher for more purposeful. - Connect with WorldTimeSystem to increase Idle frequency at night.
- Combine with EmotionController to change movement speed based on emotion.