Piranha
February 28, 2019 ยท View on GitHub
A simple tool to make rigidbodies swarm a mesh in Unity.
Works on Mesh Filters and Skinned Mesh Renderers.

Setup
- Add the
PiranhaTargetcomponent to a game object with a Mesh Filter or Skinned Mesh Renderer. - Drag any rigidbodies you want to swarm the target into the
Piranhaslist. - Hit play!
Options
- Increase
Forceto change how attracted the rigidbodies are to the target.
- Change the
Activation ModetoDistanceto prevent rigidbodies from swarming the target unless they are within theActivation Distance.