Burst and job compatible implementation of Marching Cubes
- Multithreaded (Burst and Job)
- Smooth normals
- Create a marched object from any mesh
- Collision (Mesh collider baked in job or many primitive shapes)
- Detects loose chunks and splits them into seperate objects with rigidbody
Requirements (Should work in other versions and pipelines)
- Unity 2023.2.20f1 (Built-in)
- Burst 1.8.13
- Collections 2.1.4
- Mathematics 1.2.6
General Setup
- Download and copy the
DemoandScriptsfolders into an empty folder inside yourAssetsdirectory - Add
MeshGenObject.csscript to any empty Gameobject and assign a mesh (preferable watertight) to theStartShapefield - See
Demo/meshGenDemoscene for example
MIT - See the LICENSE file for more details.
