java.lang.Object
physx.NativeObject
physx.particles.PxParticleClothCooker
-
Nested Class Summary
Nested classes/interfaces inherited from class physx.NativeObject
NativeObject.Allocator<T> -
Field Summary
FieldsFields inherited from class physx.NativeObject
address, isExternallyAllocated, SIZEOF_BYTE, SIZEOF_DOUBLE, SIZEOF_FLOAT, SIZEOF_INT, SIZEOF_LONG, SIZEOF_POINTER, SIZEOF_SHORT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PxParticleClothCookerarrayGet(long baseAddress, int index) voidComputes the volume of a closed mesh and the contraintScale.voidGenerate the constraint list and triangle index list.voidcookConstraints(PxParticleClothConstraint constraints) Generate the constraint list and triangle index list.voidcookConstraints(PxParticleClothConstraint constraints, int numConstraints) Generate the constraint list and triangle index list.intfloatintvoidrelease()static PxParticleClothCookerwrapPointer(long address) Methods inherited from class physx.NativeObject
checkNotNull, equals, getAddress, hashCode
-
Field Details
-
SIZEOF
public static final int SIZEOF -
ALIGNOF
public static final int ALIGNOF- See Also:
-
-
Constructor Details
-
PxParticleClothCooker
protected PxParticleClothCooker() -
PxParticleClothCooker
protected PxParticleClothCooker(long address)
-
-
Method Details
-
wrapPointer
-
arrayGet
-
release
public void release() -
cookConstraints
public void cookConstraints()Generate the constraint list and triangle index list. -
cookConstraints
Generate the constraint list and triangle index list.- Parameters:
constraints- 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.
-
cookConstraints
Generate the constraint list and triangle index list.- Parameters:
constraints- 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- The number of user-provided PxParticleClothConstraint s.
-
getTriangleIndices
- Returns:
- A pointer to the triangle indices.
-
getTriangleIndicesCount
public int getTriangleIndicesCount()- Returns:
- The number of triangle indices.
-
getConstraints
- Returns:
- A pointer to the PxParticleClothConstraint constraints.
-
getConstraintCount
public int getConstraintCount()- Returns:
- The number of constraints.
-
calculateMeshVolume
public void calculateMeshVolume()Computes the volume of a closed mesh and the contraintScale. Expects vertices in local space - 'close' to origin. -
getMeshVolume
public float getMeshVolume()- Returns:
- The mesh volume calculated by PxParticleClothCooker::calculateMeshVolume.
-