PxAssembleSoftBodyMesh_Sim

Defined in include/cooking/PxCooking.h

physx::PxSoftBodyMesh *PxAssembleSoftBodyMesh_Sim(physx::PxSimulationTetrahedronMeshData &simulationMesh, physx::PxCollisionTetrahedronMeshData &collisionMesh, physx::PxCollisionMeshMappingData &mappingData, physx::PxInsertionCallback &insertionCallback)

Bundles all data required for softbody simulation.

Creates a container that provides everything to create a PxSoftBody

See also

PxSoftBody createSoftBody()

Parameters
  • simulationMesh[in] Container that provides all information about the simulation mesh (geometry, mass distribution etc.)

  • collisionMesh[in] Container that provides all information about the collision mesh (geometry, surface information, acceleration structures etc.)

  • mappingData[in] Mapping that describes how the collision mesh’s vertices are embedded into the simulation mesh

  • insertionCallback[in] The insertion interface from PxPhysics.

Returns

PxSoftBodyMesh pointer that represents a softbody mesh bundling all data (simulation mesh, collision mesh etc.)