Overview of the Sheep Herding Demo
mainThe Sheep Herding demo is a small ECS (Entity Component System) demonstration built on top of GECS. It showcases several advanced reactive and relationship-driven patterns:
- Reactive Observers: Responding to specific events rather than running every frame.
- Relationship-driven Flocking: Using relationships between entities to avoid expensive $O(N^2)$ distance scans.
- CommandBuffer-safe State Machines: Managing state transitions (like fleeing or wandering) safely.
- Movement Integration: Combining
CharacterBody3DandNavigationAgent3Dwith ECS-driven velocity.
Goal: Drive the shepherd (WASD + Shift to sprint) to herd sheep into the pen.