29#ifndef PX_PARTICLE_CLOTH_COOKER_H
30#define PX_PARTICLE_CLOTH_COOKER_H
35#include "foundation/PxSimpleTypes.h"
36#include "foundation/PxVec4.h"
53 eTYPE_INVALID_CONSTRAINT = 0,
54 eTYPE_HORIZONTAL_CONSTRAINT = 1,
55 eTYPE_VERTICAL_CONSTRAINT = 2,
56 eTYPE_DIAGONAL_CONSTRAINT = 4,
57 eTYPE_BENDING_CONSTRAINT = 8,
58 eTYPE_DIAGONAL_BENDING_CONSTRAINT = 16,
59 eTYPE_ALL = eTYPE_HORIZONTAL_CONSTRAINT | eTYPE_VERTICAL_CONSTRAINT | eTYPE_DIAGONAL_CONSTRAINT | eTYPE_BENDING_CONSTRAINT | eTYPE_DIAGONAL_BENDING_CONSTRAINT
73 virtual void release() = 0;
110 PxU32 constraintTypeFlags = ExtGpu::PxParticleClothConstraint::eTYPE_ALL, PxVec3 verticalDirection = PxVec3(0.0f,1.0f,0.0f), PxReal bendingConstraintMaxAngle = 20.0f/360.0f*PxTwoPi
Definition PxParticleClothCooker.h:71
virtual PxU32 * getTriangleIndices()=0
virtual void calculateMeshVolume()=0
Computes the volume of a closed mesh and the contraintScale. Expects vertices in local space - 'close...
virtual PxParticleClothConstraint * getConstraints()=0
virtual PxU32 getConstraintCount()=0
virtual PxU32 getTriangleIndicesCount()=0
virtual PxReal getMeshVolume()=0
virtual void cookConstraints(const PxParticleClothConstraint *constraints=NULL, const PxU32 numConstraints=0)=0
Generate the constraint list and triangle index list.
Sorts an array of objects in ascending order, assuming that the predicate implements the < operator:
Definition PxBoxController.h:39
ExtGpu::PxParticleClothCooker * PxCreateParticleClothCooker(PxU32 vertexCount, physx::PxVec4 *inVertices, PxU32 triangleIndexCount, PxU32 *inTriangleIndices, PxU32 constraintTypeFlags=ExtGpu::PxParticleClothConstraint::eTYPE_ALL, PxVec3 verticalDirection=PxVec3(0.0f, 1.0f, 0.0f), PxReal bendingConstraintMaxAngle=20.0f/360.0f *PxTwoPi)
Creates a PxParticleClothCooker.
Definition ExtParticleClothCooker.cpp:455
Holds all the information for a particle cloth constraint used in the PxParticleClothCooker.
Definition PxParticleClothCooker.h:50
PxReal length
The distance between particle A and B.
Definition PxParticleClothCooker.h:63
PxU32 particleIndexA
The first particle index of this constraint.
Definition PxParticleClothCooker.h:61
PxU32 constraintType
The type of constraint, see the constraint type enum.
Definition PxParticleClothCooker.h:64
PxU32 particleIndexB
The second particle index of this constraint.
Definition PxParticleClothCooker.h:62