Function physx_sys::phys_PxCookConvexMesh
source · pub unsafe extern "C" fn phys_PxCookConvexMesh(
params: *const PxCookingParams,
desc: *const PxConvexMeshDesc,
stream: *mut PxOutputStream,
condition: *mut PxConvexMeshCookingResult
) -> bool
Expand description
Cooks a convex mesh. The results are written to the stream.
To create a triangle mesh object it is necessary to first ‘cook’ the mesh data into a form which allows the SDK to perform efficient collision detection.
cookConvexMesh() allows a mesh description to be cooked into a binary stream suitable for loading and performing collision detection at runtime.
The number of vertices and the number of convex polygons in a cooked convex mesh is limited to 255.
If those limits are exceeded in either the user-provided data or the final cooked mesh, an error is reported.
true on success.