PxAssembleSoftBodyMesh

Defined in include/cooking/PxCooking.h

physx::PxSoftBodyMesh *PxAssembleSoftBodyMesh(physx::PxTetrahedronMeshData &simulationMesh, physx::PxSoftBodySimulationData &simulationData, physx::PxTetrahedronMeshData &collisionMesh, physx::PxSoftBodyCollisionData &collisionData, 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] The geometry (tetrahedral mesh) to be used as simulation mesh

  • simulationData[in] Additional non-tetmesh data that contains mass information etc. for the simulation mesh

  • collisionMesh[in] The geometry (tetrahedral mesh) to be used for collision detection

  • collisionData[in] Additional non-tetmesh data that contains surface information, acceleration structures etc. for the simulation mesh

  • 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.)