java.lang.Object
physx.NativeObject
physx.particles.PxParticleClothDesc
Structure to describe the set of particle cloths in the same #PxParticleClothBuffer. Used an input for the cloth preprocessing.
-
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 PxParticleClothDescarrayGet(long baseAddress, int index) static PxParticleClothDesccreateAt(long address) static <T> PxParticleClothDesccreateAt(T allocator, NativeObject.Allocator<T> allocate) voiddestroy()List of PxParticleCloth s, describes the individual cloths.intThe number of cloths in described using this cloth descriptorintThe number of particles in this cloth descriptorintThe number of springs in this cloth descriptorintThe number of triangles in this cloth descriptorList of rest positions for all particlesList of PxParticleSpring s.List of triangle indices, 3 consecutive PxU32 that map triangle vertices to particlesvoidsetCloths(PxParticleCloth value) List of PxParticleCloth s, describes the individual cloths.voidsetNbCloths(int value) The number of cloths in described using this cloth descriptorvoidsetNbParticles(int value) The number of particles in this cloth descriptorvoidsetNbSprings(int value) The number of springs in this cloth descriptorvoidsetNbTriangles(int value) The number of triangles in this cloth descriptorvoidsetRestPositions(PxVec4 value) List of rest positions for all particlesvoidsetSprings(PxParticleSpring value) List of PxParticleSpring s.voidsetTriangles(PxU32Ptr value) List of triangle indices, 3 consecutive PxU32 that map triangle vertices to particlesstatic PxParticleClothDescwrapPointer(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
-
PxParticleClothDesc
protected PxParticleClothDesc(long address) -
PxParticleClothDesc
public PxParticleClothDesc()
-
-
Method Details
-
wrapPointer
-
arrayGet
-
createAt
- Parameters:
address- Pre-allocated memory, where the object is created.- Returns:
- Stack allocated object of PxParticleClothDesc
-
createAt
- Type Parameters:
T- Allocator class, e.g. LWJGL's MemoryStack.- Parameters:
allocator- Object to use for allocation, e.g. an instance of LWJGL's MemoryStack.allocate- Method to call on allocator to obtain the target address, e.g. MemoryStack::nmalloc.- Returns:
- Stack allocated object of PxParticleClothDesc
-
destroy
public void destroy() -
getCloths
List of PxParticleCloth s, describes the individual cloths. -
setCloths
List of PxParticleCloth s, describes the individual cloths. -
getTriangles
List of triangle indices, 3 consecutive PxU32 that map triangle vertices to particles -
setTriangles
List of triangle indices, 3 consecutive PxU32 that map triangle vertices to particles -
getSprings
List of PxParticleSpring s. -
setSprings
List of PxParticleSpring s. -
getRestPositions
List of rest positions for all particles -
setRestPositions
List of rest positions for all particles -
getNbCloths
public int getNbCloths()The number of cloths in described using this cloth descriptor -
setNbCloths
public void setNbCloths(int value) The number of cloths in described using this cloth descriptor -
getNbSprings
public int getNbSprings()The number of springs in this cloth descriptor -
setNbSprings
public void setNbSprings(int value) The number of springs in this cloth descriptor -
getNbTriangles
public int getNbTriangles()The number of triangles in this cloth descriptor -
setNbTriangles
public void setNbTriangles(int value) The number of triangles in this cloth descriptor -
getNbParticles
public int getNbParticles()The number of particles in this cloth descriptor -
setNbParticles
public void setNbParticles(int value) The number of particles in this cloth descriptor
-