A simple tool to make rigidbodies swarm a mesh in Unity.
Works on Mesh Filters and Skinned Mesh Renderers.
- Add the
PiranhaTarget
component to a game object with a Mesh Filter or Skinned Mesh Renderer. - Drag any rigidbodies you want to swarm the target into the
Piranhas
list. - Hit play!