ExtGpu::PxParticleClothCooker
Defined in include/extensions/PxParticleClothCooker.h
-
class PxParticleClothCooker
Public Functions
-
virtual void release() = 0
-
virtual void cookConstraints(const PxParticleClothConstraint *constraints = NULL, const PxU32 numConstraints = 0) = 0
Generate the constraint list and triangle index list.
- Parameters
constraints – [in] A pointer to an array of PxParticleClothConstraint constraints. If NULL, the cooker will generate all the constraints. Otherwise, the user-provided constraints will be added.
numConstraints – [in] The number of user-provided PxParticleClothConstraint s.
-
virtual PxParticleClothConstraint *getConstraints() = 0
- Returns
A pointer to the PxParticleClothConstraint constraints.
-
virtual void calculateMeshVolume() = 0
Computes the volume of a closed mesh and the contraintScale. Expects vertices in local space - ‘close’ to origin.
Protected Functions
-
inline virtual ~PxParticleClothCooker()
-
virtual void release() = 0