PxCreateSoftBodyMesh

Defined in include/cooking/PxCooking.h

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

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

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.

Note

PxInsertionCallback can be obtained through PxPhysics::getPhysicsInsertionCallback() or PxGetStandaloneInsertionCallback().

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.

  • insertionCallback[in] The insertion interface from PxPhysics.

Returns

PxSoftBodyMesh pointer on success.