We are experimenting with Fracturing and Destruction extension and while working on our model, we are getting this “Gu::ConvexMesh::loadConvexHull: convex hull init failed!” error (see the stack below). I can step into the where the error happens and it is at the line where we are setting convex flag to true.
MeshCollider cldr = chunk.gameObject.AddComponent<MeshCollider>();
cldr.convex = true;
Ideally, I would like to catch that error with some information on what object it occurs, so I can provide a meaningful message to the content creator. However, there are no return values here obviously and the exception is not thrown.
Does anyone know about any possible solutions or workarounds to the problem?
The full stack:
Gu::ConvexMesh::loadConvexHull: convex hull init failed! Try to use the PxConvexFlag::eINFLATE_CONVEX flag. (see PxToolkit::createConvexMeshSafe)
UnityEngine.MeshCollider:set_convex(Boolean)
UltimateFracturing.Fracturer:ComputeChunkColliders(FracturedObject, ProgressDelegate) (at Assets/Ultimate Game Tools/Fracturing/Scripts/Fracture.cs:1446)
UltimateFracturing.Fracturer:FractureToChunksBSPMultipleInteriors(FracturedObject, Boolean, List`1&, ProgressDelegate) (at Assets/Destruction Testing/Scripts/FractureAlgorithms.cs:627)
UltimateFracturing.Fracturer:ACEFracture(FracturedObject, Boolean, List`1&, ProgressDelegate) (at Assets/Destruction Testing/Scripts/FractureAlgorithms.cs:19)
UltimateFracturing.Fracturer:FractureToChunks(FracturedObject, Boolean, List`1&, ProgressDelegate) (at Assets/Ultimate Game Tools/Fracturing/Scripts/Fracture.cs:196)
FracturedObjectEditor:ComputeChunks(FracturedObject) (at Assets/Destruction Testing/Scripts/Editor/FracturedInspectorExtension.cs:122)
FracturedObjectEditor:FixedInspectorGUI() (at Assets/Destruction Testing/Scripts/Editor/FracturedInspectorExtension.cs:514)
FracturedObjectEditor:OnInspectorGUI() (at Assets/Ultimate Game Tools/Fracturing/Editor/FracturedObjectEditor.cs:335)
UnityEditor.DockArea:OnGUI()