SwarmLab is a modular and reliable Unity package designed for simulating complex swarm behaviors like flocking, schooling, and leader following. It operates effectively in Runtime, offering a flexible rule-based system.
Demonstration of 3D sample - Aquarium Demo (classic boids)
Demonstration of 2D sample - Zombies Demo (Prey VS Predator Boids)
- Adjustable Behaviors: Fine-tune customizable steering rules to create unique swarm dynamics.
- Multi-Species Support: Create complex ecosystems where different species interacting with custom weights.
- Dual Simulation Modes: seamless support for Volumetric (3D) and Planar (2D) environments.
- Extensible Architecture: Easily add custom
SteeringRuleclasses to define unique behaviors.
- Unity Version: 6000.2 or later.
- Open the Unity Package Manager.
- Click the
+button in the top left. - Select "Add package from git URL..."
- Paste the following URL:
https://github.com/xaxam2001/SwarmLab.git?path=/SwarmLab-UPM
If you want to modify the package source code:
- Download the repository as a ZIP or Clone it.
- Copy the
SwarmLab-UPfolder into your Unity project'sPackagesfolder (or anywhere in your project assets). - Open the Unity Package Manager.
- Click the
+button in the top left. - Select "Add package from disk...".
- Select the
package.jsonfile inside theSwarmLab-UPfolder you just copied.
See Documentation for full details on workflows, configuration.