From the documentation (Shapes and Geometries -> Triangle Meshes):
"Shapes with triangle mesh geometries may only be created for static and kinematic actors"
You can't have a dynamic (moving) object that uses a triangle mesh for collisions, it's not supported.
thank you!! I add " actor->setRigidDynamicFlag(PxRigidDynamicFlag::eKINEMATIC,true); " to change the triangle dynamic actor to kinematic actor, I use boxgeometry create a set of cubes and those are the dynamic actors. Then use them to hit kinematic actor--triangle mesh cube. The kinematic actor cube can intercept dynamic actor cubes, it seems that the collision detection happened, but now a new problem appeared, the kinematic actor cube can not fall down, it just hang on the air even though I have set the kinematic target and linear velocity. So what's the problem here?