Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/brianasu/unity-voxelizer

Utility library to voxelize meshes in Unity
https://github.com/brianasu/unity-voxelizer

Last synced: about 2 months ago
JSON representation

Utility library to voxelize meshes in Unity

Awesome Lists containing this project

README

        

# unity-voxelizer
Utility library to voxelize meshes in Unity.

**Usage**
```c#
//Create a new instance
var vxl = new Voxeliser(bounds, xGridDimensions, yGridDimensions, zGridDimensions);

//Pass in a transform with mesh renderers under it
vxl.Voxelize(rootTransform);

//This will return a 3D bool array that contains the voxel data. solid == true empty == false
var data = vxl.VoxelMap;
```