Warning about convex hull cook

Hi all

How can I resolve the situation?

and
(1)I can’t change the mesh.
(2)the mesh after cook using PxConvexFlag::eINFLATE_CONVEX flag is not good shape(too big).

(1)
performance warning : ConvexHullBuilder: convex hull does not have PCM info - performance drop! Try to use different convex mesh cooking settings.

(2)
unknown error : Gu::ConvexMesh::loadConvexHull: convex hull init failed! Try to use the PxConvexFlag::eINFLATE_CONVEX flag. (see PxToolkit::createConvexMeshSafe)

thank you very much.

There is a limit to the number of vertices the cooker can create for the convex hull ( 256 iirc ). The only way to get around this is possible to try cooking twice, the first time the cooking will fail and give you the PxConvexFlag::eINFLATE_CONVEX flag error. Specifying the flag the second time around usually correct the error. Short of that, if you want a 100% accurate convex mesh, then I would suggest using another tool to generate the convex mesh offline and pass those directly to PhysX.