#include <PxClothFabricCooker.h>
Public Member Functions | |
PxClothFabricCooker (const PxClothMeshDesc &desc, const PxVec3 &gravity, bool useGeodesicTether=true) | |
Cooks a triangle mesh to a PxClothFabricDesc. | |
~PxClothFabricCooker () | |
PxClothFabricDesc | getDescriptor () const |
Returns the fabric descriptor to create the fabric. | |
void | save (PxOutputStream &stream, bool platformMismatch) const |
Saves the fabric data to a platform and version dependent stream. | |
Private Attributes | |
PxFabricCookerImpl * | mImpl |
PxClothFabricCooker::PxClothFabricCooker | ( | const PxClothMeshDesc & | desc, | |
const PxVec3 & | gravity, | |||
bool | useGeodesicTether = true | |||
) |
Cooks a triangle mesh to a PxClothFabricDesc.
desc | The cloth mesh descriptor on which the generation of the cooked mesh depends. | |
gravity | A normalized vector which specifies the direction of gravity. This information allows the cooker to generate a fabric with higher quality simulation behavior. | |
useGeodesicTether | A flag to indicate whether to compute geodesic distance for tether constraints. |
PxClothFabricCooker::~PxClothFabricCooker | ( | ) |
PxClothFabricDesc PxClothFabricCooker::getDescriptor | ( | ) | const |
Returns the fabric descriptor to create the fabric.
void PxClothFabricCooker::save | ( | PxOutputStream & | stream, | |
bool | platformMismatch | |||
) | const |
Saves the fabric data to a platform and version dependent stream.
PxFabricCookerImpl* PxClothFabricCooker::mImpl [private] |