|
| 1 | +# π§± Collider Mesh Tool |
1 | 2 |
|
| 3 | +**Collider Mesh Tool** is a powerful Unity Editor utility that combines three key systems: |
| 4 | +π MeshCollider generation, |
| 5 | +βοΈ manual outline drawing, |
| 6 | +π and batch prefab configuration. |
| 7 | + |
| 8 | +> β
Built with Odin Inspector |
| 9 | +> β
Supports both algorithmic and manual mesh generation |
| 10 | +> β
All modules can be used independently |
| 11 | +
|
| 12 | + |
| 13 | +## β¨ Modules |
| 14 | + |
| 15 | +### π¦ ColliderMeshCreator |
| 16 | +Editor window for generating custom MeshColliders: |
| 17 | +- πΉ Automatically from MeshFilter objects |
| 18 | +- πΉ Or manually using `ManualOutlineDrawer` in the Scene view |
| 19 | + |
| 20 | +**Features:** |
| 21 | +- Concavity, scale factor, and Y-threshold control |
| 22 | +- Offset height and extrusion depth |
| 23 | +- Optional Catmull-Rom smoothing for curved outlines |
| 24 | +- Debug material support |
| 25 | + |
| 26 | +**Editor Window:** |
| 27 | +`Tools > Collider Mesh Generator Editor Window` |
| 28 | + |
| 29 | + |
| 30 | + |
| 31 | + |
| 32 | + |
| 33 | +--- |
| 34 | +π [View Release](https://github.com/SinlessDevil/EcsStickmanSurvivors/releases/tag/ColliderMeshCreator-v1.0.0) |
| 35 | + |
| 36 | +### π¦ ConcaveHull v1.0.0 β Geometry API |
| 37 | +Lightweight runtime plugin for generating 2D concave hulls on the XZ plane. |
| 38 | + |
| 39 | +**API:** |
| 40 | +- `Hull.SetConvexHull(List<Node>)` |
| 41 | +- `Hull.SetConcaveHull(concavity, scaleFactor)` |
| 42 | +- `Hull.CleanUp()` |
| 43 | + |
| 44 | +**Data Types:** |
| 45 | +- `Node` β 2D point with ID |
| 46 | +- `Line` β connection between two Nodes |
| 47 | + |
| 48 | + |
| 49 | + |
| 50 | +--- |
| 51 | +π [View Release](https://github.com/SinlessDevil/EcsStickmanSurvivors/releases/tag/ConcaveHull-v1.0.0) |
| 52 | + |
| 53 | + |
| 54 | +### π¦ PrefabSetupEditor v1.0.0 |
| 55 | +Efficient tool for setting up renderers and materials across prefabs and scene objects. |
| 56 | + |
| 57 | +**Features:** |
| 58 | +- Recursive material assignment |
| 59 | +- Filter and randomize based on mesh name |
| 60 | +- Configure: |
| 61 | + - Shadow casting |
| 62 | + - Light probe usage |
| 63 | + - Global illumination |
| 64 | + - Motion vectors and more |
| 65 | + |
| 66 | + |
| 67 | + |
| 68 | +--- |
| 69 | +π [View Release](https://github.com/SinlessDevil/EcsStickmanSurvivors/releases/tag/PrefabSetupEditor-v1.0.0) |
| 70 | + |
| 71 | +## π§° Requirements |
| 72 | +- Unity **2021.3+** |
| 73 | +- β
[Odin Inspector](https://odininspector.com/) (Required) |
| 74 | +- β
[ConcaveHull](https://github.com/SinlessDevil/EcsStickmanSurvivors/releases/tag/ConcaveHull-v1.0.0) (for mesh generation) |
| 75 | + |
| 76 | + |
| 77 | +## π Installation |
| 78 | +1. Download the `.unitypackage` from [Releases](https://github.com/SinlessDevil/ColliderMeshTool/releases) |
| 79 | +2. Import it into your Unity project |
| 80 | +3. Install Odin Inspector and (optionally) ConcaveHull |
| 81 | +4. Done! π |
| 82 | + |
| 83 | +## π§ Quick Controls |
| 84 | +| Action | Shortcut | |
| 85 | +|-------------------|----------| |
| 86 | +| Add point | `Q` | |
| 87 | +| Remove point | `E` | |
| 88 | +| Open editor | `Tools > Collider Mesh Generator` | |
| 89 | + |
| 90 | +## π About (GitHub profile tagline) |
| 91 | +> Unity Editor toolset for generating mesh colliders, drawing outlines, and editing prefabs β all in one. |
0 commit comments