PxCreateConvexMesh#

Defined in include/cooking/PxCooking.h

inline physx::PxConvexMesh *PxCreateConvexMesh(
const physx::PxCookingParams &params,
const physx::PxConvexMeshDesc &desc,
)#

Cooks and creates a convex mesh without going through a stream.

Convenience function for standalone objects.

See also

PxCookConvexMesh() PxInsertionCallback

Note

This method does the same as cookConvexMesh, but the produced mesh is not stored into a stream but is either directly inserted in PxPhysics, or created as a standalone object. Use this method if you are unable to cook offline.

Parameters:
  • params[in] The cooking parameters

  • desc[in] The convex mesh descriptor to read the mesh from.

Returns:

PxConvexMesh pointer on success