Are you tired of wrestling with complex mesh decomposition for your dynamic rigid bodies in Unity? Look no further! We’re thrilled to introduce CoACD (Collision-Aware Convex Decomposition), a free and fully open-source package that takes your mesh decomposition to the next level, ensuring precision and accuracy in collision simulations.
Why Convex Mesh Decomposition Matters
In Unity, dynamic rigid bodies require convex meshes to function properly. While enabling the convex setting and generating a convex hull of your mesh can be sufficient for some cases, many scenarios demand a more meticulous approach. Splitting your mesh into smaller, convex parts and computing their convex hulls individually is often the key to achieving realistic collision simulations.
Previously, the go-to solution for this task was the V-HACD algorithm. While V-HACD works well for simpler cases, it falls short when dealing with complex geometries, such as bowls or vases. It tends to fill the interior of these shapes, leading to unsatisfactory results.
CoACD is here to address these challenges head-on. This package is fully open-source, released under the Apache v2 license, and is designed to outperform V-HACD in precision and reliability. Take a look at the image above, and you’ll see how CoACD excels in mesh splitting, particularly in collision-aware scenarios. It’s tailored to solve complicated cases like bowls and vases, ensuring accurate and realistic results.
Key Features of CoACD
-
Collision-Aware Decomposition: CoACD splits your mesh with collision simulations in mind, providing results that are true to real-world physics.
-
Open Source: We believe in the power of the community. CoACD is free and open source, enabling collaboration and innovation.
-
Precise Results: Say goodbye to interior fillings and glitches. CoACD guarantees precision even in complex cases.
-
Easy Integration: CoACD seamlessly integrates into your Unity project, making the setup process a breeze. CoACD supports Windows, Linux and MacOS.
Get Started with CoACD Today!
If you have any questions or need assistance, feel free to ask in this thread. We’re here to support you on your journey to better mesh decomposition and collision simulations in Unity.
Github: https://github.com/SarahWeiii/CoACD
To install CoACD into your unity project:

- Open the Package Manager from Window → Package Manager.
- Find and click the + button in the upper lefthand corner of the window. Select Add package from git URL (see the screenshot).
- Enter the following URL:
https://github.com/SarahWeiii/CoACD.git?path=/Packages/info.flandre.coacd#unity - Click “Add”.
To use CoACD:
- Add a CoACD component to your object. You can tweak the parameters in the editor.
- Right click the component header lane. Then select Generate Collision Meshes or Generate Collision Meshes for Hierarchy to generate collision for the current object or all children of the current object that contains a MeshFilter, respectively. You usually want
**Generate Collision Meshes for Hierarchy**. - Unity mesh colliders will be created in the scene under Collision as a child of each object.

Check here for an example project leveraging CoACD for articulation simulation.


