What this package is
Swarm Navigation Bundle combines two core systems into a single, cohesive solution for large-scale agent movement in Unity:
- Swarm Core — a lightweight foundation for managing and updating large numbers of agents
- Flow Field Navigation — an efficient global navigation system that guides all agents using a shared direction field instead of individual paths
Together, they allow you to move many agents smoothly, predictably, and efficiently — without the overhead of per-agent pathfinding like A* or NavMesh.
This bundle is designed for RTS games, simulations, city builders, crowd systems, and swarm-style AI.
What’s included
Swarm Core
- Lightweight agent representation (position, velocity, radius)
- World sampling via grid or spatial partitioning
- Centralized update loop for large agent counts
- Engine-friendly, minimal abstractions
- Built-in debug drawing helpers
Flow Field Navigation
- Grid-based cost field generation
- Direction (flow) field computation
- Multiple target support
- Dynamic obstacle cost stamping
- Agent direction sampling
- Debug visualization (flow arrows, cost heatmaps)
Typical use cases
- RTS unit movement
- Large enemy waves
- Crowd simulation
- City or colony simulations
- Swarm-style AI enemies
- Educational or research simulations
Technical notes
- Works on a grid in the XZ plane
- Optimized for global navigation scenarios
- Designed to integrate with custom AI, behavior trees, or state machines
- Uses assembly definitions for clean modular separation
Who this is for
- Indie developers building games with many agents
- Developers who want performance without complexity
- Teams that prefer simple, understandable systems
- Anyone tired of fighting NavMesh at scale