Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joshcamas/unity-mesh-triangulator
A modified version of alexmuab's unity-mesh-triangulator
https://github.com/joshcamas/unity-mesh-triangulator
mesh physics unity3d visual
Last synced: 3 months ago
JSON representation
A modified version of alexmuab's unity-mesh-triangulator
- Host: GitHub
- URL: https://github.com/joshcamas/unity-mesh-triangulator
- Owner: joshcamas
- Created: 2019-04-10T19:58:43.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-04-14T20:49:42.000Z (almost 6 years ago)
- Last Synced: 2024-05-07T14:32:50.035Z (9 months ago)
- Topics: mesh, physics, unity3d, visual
- Language: C#
- Size: 10.7 KB
- Stars: 15
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# unity-mesh-triangulator
A modified version of [alexmuab's unity-mesh-triangulator](https://github.com/alexmuab/unity-mesh-triangulator).![example](https://github.com/alexmuab/unity-mesh-triangulator/blob/master/MeshTriangulator.gif)
### Usage
```c#
//Simplest way: finds attached MeshFilter and MeshRenderer
MeshTriangulator.Triangulate(transform);//More controlled way
MeshTriangulator.Triangulate(transform,meshFilter,meshRenderer);//You can also specify the force and lifetime applied to the generated triangles
MeshTriangulator.Triangulate(transform,100,3)
MeshTriangulator.Triangulate(transform,meshFilter,meshRenderer,100,3)
```## Todo
* Add function to triangulate based on a Mesh and Materials instead of components
* More options, such as controlling whether the triangles use collision
* Adding a mode that doesn't use unity physics, possibly particles of some sort?
* Possibly dropping this in favor of using a shader instead