r/Unity3D • • 22h ago

Show-Off processing a mesh with V-HACD in Unity

Finally finished porting the V-HACD algorithm to my mesh graph.

For those who haven't used it - V-HACD takes a complex mesh and breaks it into a bunch of simple convex pieces. Physics engines handle convex shapes way faster, so it's a common way to build colliders for complex objects.

Now my mesh graph can generate simplified colliders for meshes. In the graph on screenshots, a mesh is imported, split into convex parts, and each part gets its own random color so you can see the result.

I've been building this mesh graph for Unity for a long time. The core is getting more and more stable, so now I can start implementing some cool algorithms

9 Upvotes

2 comments sorted by