Converts a mesh into a voxel mesh
How to install:
- cd into your unity project/Assets folder
- Then run ==> git clone https://github.com/Andy-Roger/Cubify.git
How to use:
- Create a game object with a mesh collider that matches the mesh
- Right click on the GameObject in the Hierarchy
- Select "Cubify"
- The Cubify window will appear
- Choose a cubic resolution e.g. 10
- Click Generate
Notes:
- Right now, only single mesh objects are supported/tested
- Cubify uses the object collider component to generate the voxel mesh, so for best results use a mesh collider that uses the mesh of the object
Credit to Skull model: https://sketchfab.com/3d-models/skull-downloadable-1a9db900738d44298b0bc59f68123393