java.lang.Object
physx.NativeObject
physx.particles.PxPartitionedParticleCloth
-
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 TypeMethodDescriptionvoidallocateBuffers(int nbParticles, PxCudaContextManager cudaManager) static PxPartitionedParticleClotharrayGet(long baseAddress, int index) static PxPartitionedParticleClothcreateAt(long address) static <T> PxPartitionedParticleClothcreateAt(T allocator, NativeObject.Allocator<T> allocate) voiddestroy()intintintintintvoidvoidvoidsetCloths(PxParticleCloth value) voidsetMaxSpringsPerPartition(int value) voidvoidsetNbCloths(int value) voidsetNbPartitions(int value) voidsetNbSprings(int value) voidvoidsetRemapOutput(PxU32Ptr value) voidsetRemapOutputSize(int value) voidstatic PxPartitionedParticleClothwrapPointer(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
-
PxPartitionedParticleCloth
protected PxPartitionedParticleCloth(long address) -
PxPartitionedParticleCloth
public PxPartitionedParticleCloth()
-
-
Method Details
-
wrapPointer
-
arrayGet
-
createAt
- Parameters:
address- Pre-allocated memory, where the object is created.- Returns:
- Stack allocated object of PxPartitionedParticleCloth
-
createAt
public static <T> PxPartitionedParticleCloth createAt(T allocator, NativeObject.Allocator<T> allocate) - 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 PxPartitionedParticleCloth
-
destroy
public void destroy() -
getAccumulatedSpringsPerPartitions
- Returns:
- WebIDL type:
PxU32Ptr[Value]
-
setAccumulatedSpringsPerPartitions
- Parameters:
value- WebIDL type:PxU32Ptr[Value]
-
getAccumulatedCopiesPerParticles
- Returns:
- WebIDL type:
PxU32Ptr[Value]
-
setAccumulatedCopiesPerParticles
- Parameters:
value- WebIDL type:PxU32Ptr[Value]
-
getRemapOutput
- Returns:
- WebIDL type:
PxU32Ptr[Value]
-
setRemapOutput
- Parameters:
value- WebIDL type:PxU32Ptr[Value]
-
getOrderedSprings
- Returns:
- WebIDL type:
PxParticleSpring
-
setOrderedSprings
- Parameters:
value- WebIDL type:PxParticleSpring
-
getSortedClothStartIndices
- Returns:
- WebIDL type:
PxU32Ptr[Value]
-
setSortedClothStartIndices
- Parameters:
value- WebIDL type:PxU32Ptr[Value]
-
getCloths
- Returns:
- WebIDL type:
PxParticleCloth
-
setCloths
- Parameters:
value- WebIDL type:PxParticleCloth
-
getRemapOutputSize
public int getRemapOutputSize()- Returns:
- WebIDL type: unsigned long
-
setRemapOutputSize
public void setRemapOutputSize(int value) - Parameters:
value- WebIDL type: unsigned long
-
getNbPartitions
public int getNbPartitions()- Returns:
- WebIDL type: unsigned long
-
setNbPartitions
public void setNbPartitions(int value) - Parameters:
value- WebIDL type: unsigned long
-
getNbSprings
public int getNbSprings()- Returns:
- WebIDL type: unsigned long
-
setNbSprings
public void setNbSprings(int value) - Parameters:
value- WebIDL type: unsigned long
-
getNbCloths
public int getNbCloths()- Returns:
- WebIDL type: unsigned long
-
setNbCloths
public void setNbCloths(int value) - Parameters:
value- WebIDL type: unsigned long
-
getMaxSpringsPerPartition
public int getMaxSpringsPerPartition()- Returns:
- WebIDL type: unsigned long
-
setMaxSpringsPerPartition
public void setMaxSpringsPerPartition(int value) - Parameters:
value- WebIDL type: unsigned long
-
getMCudaManager
- Returns:
- WebIDL type:
PxCudaContextManager
-
setMCudaManager
- Parameters:
value- WebIDL type:PxCudaContextManager
-
allocateBuffers
- Parameters:
nbParticles- WebIDL type: unsigned longcudaManager- WebIDL type:PxCudaContextManager
-