PxCreateDeformableVolumeMesh
Defined in include/cooking/PxCooking.h
-
inline physx::PxDeformableVolumeMesh *PxCreateDeformableVolumeMesh(const physx::PxCookingParams ¶ms, const physx::PxTetrahedronMeshDesc &simulationMeshDesc, const physx::PxTetrahedronMeshDesc &collisionMeshDesc, const physx::PxDeformableVolumeSimulationDataDesc &simulationDataDesc)
Cooks and creates a deformable volume mesh without going through a stream.
Convenience function for standalone objects.
See also
PxCookTriangleMesh() PxPhysics.createTriangleMesh() PxInsertionCallback
Note
This method does the same as PxCreateDeformableVolumeMesh, 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
simulationMeshDesc – [in] The tetrahedron mesh descriptor to read the simulation mesh from.
collisionMeshDesc – [in] The tetrahedron mesh descriptor to read the collision mesh from.
simulationDataDesc – [in] The deformable volume data descriptor to read mapping information from.
- Returns
PxDeformableVolumeMesh pointer on success.