https://github.com/keenanwoodall/Piranha
A very simple tool to make rigidbodies swarm a mesh in Unity.
https://github.com/keenanwoodall/Piranha
Last synced: 5 months ago
JSON representation
A very simple tool to make rigidbodies swarm a mesh in Unity.
- Host: GitHub
- URL: https://github.com/keenanwoodall/Piranha
- Owner: keenanwoodall
- License: mit
- Created: 2019-02-28T15:07:49.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-02-28T20:18:28.000Z (about 6 years ago)
- Last Synced: 2024-11-09T18:03:26.575Z (5 months ago)
- Language: C#
- Homepage:
- Size: 241 KB
- Stars: 259
- Watchers: 14
- Forks: 32
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-unity3d - Piranha - A very simple tool to make rigidbodies swarm a mesh in Unity (Open Source Repositories / Gameplay)
- awesome-unity-open-source-on-github - Piranha - A very simple tool to make rigidbodies swarm a mesh in Unity (Physics)
- awesome-unity3d - Piranha - A very simple tool to make rigidbodies swarm a mesh in Unity (Open Source Repositories / Gameplay)
- awesome-unity3d - Piranha - A very simple tool to make rigidbodies swarm a mesh in Unity (Open Source Repositories / Gameplay)
README
# Piranha
A simple tool to make rigidbodies swarm a mesh in Unity.Works on Mesh Filters and Skinned Mesh Renderers.

## 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.

- Change the `Activation Mode` to `Distance` to prevent rigidbodies from swarming the target unless they are within the `Activation Distance`.
