PxCreateSoftBodyMesh

Defined in include/cooking/PxCooking.h

inline physx::PxSoftBodyMesh *PxCreateSoftBodyMesh(const physx::PxCookingParams &params, const physx::PxTetrahedronMeshDesc &simulationMeshDesc, const physx::PxTetrahedronMeshDesc &collisionMeshDesc, const physx::PxSoftBodySimulationDataDesc &softbodyDataDesc)

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

Convenience function for standalone objects.

See also

PxCookTriangleMesh() PxPhysics.createTriangleMesh() PxInsertionCallback

Note

This method does the same as PxCookSoftBodyMesh, 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.

  • softbodyDataDesc[in] The softbody data descriptor to read mapping information from.

Returns

PxSoftBodyMesh pointer on success.