Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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