# Piranha **Repository Path**: dang050/Piranha ## Basic Information - **Project Name**: Piranha - **Description**: A very simple tool to make rigidbodies swarm a mesh in Unity. - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-07-26 - **Last Updated**: 2021-07-26 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Piranha A simple tool to make rigidbodies swarm a mesh in Unity. Works on Mesh Filters and Skinned Mesh Renderers. ![1](https://i.imgur.com/5wLtUS5.gif) ## Setup 1. Add the `PiranhaTarget` component to a game object with a Mesh Filter or Skinned Mesh Renderer. 2. Drag any rigidbodies you want to swarm the target into the `Piranhas` list. 3. Hit play! ## Options - Increase `Force` to change how attracted the rigidbodies are to the target. ![2](https://i.imgur.com/xOgaggq.gif) - Change the `Activation Mode` to `Distance` to prevent rigidbodies from swarming the target unless they are within the `Activation Distance`. ![3](https://i.imgur.com/Ow8BHMi.gif)