java.lang.Object
physx.NativeObject
physx.common.PxBase
physx.particles.PxParticleBuffer
physx.particles.PxParticleClothBuffer
A particle buffer used to simulate particle cloth.
See #PxPhysics::createParticleClothBuffer.
-
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 PxParticleClothBufferarrayGet(long baseAddress, int index) intGet the number of springs in this particle buffer.intGet the number of triangles for this particle buffer.Get rest positions for this particle buffer.Get the springs for this particle buffer.Get the triangle indices for this particle buffer.voidsetCloths(PxPartitionedParticleCloth cloths) Set cloths for this particle buffer.voidsetNbTriangles(int nbTriangles) Set the number of triangles for this particle buffer.static PxParticleClothBufferwrapPointer(long address) Methods inherited from class physx.particles.PxParticleBuffer
getBufferIndex, getBufferUniqueId, getFlatListStartIndex, getMaxParticles, getMaxParticleVolumes, getNbActiveParticles, getNbParticleVolumes, getParticleVolumes, getPhases, getPositionInvMasses, getVelocities, raiseFlags, release, setNbActiveParticles, setNbParticleVolumes, setRigidAttachments, setRigidFiltersMethods inherited from class physx.common.PxBase
getBaseFlags, getConcreteType, getConcreteTypeName, isReleasable, setBaseFlag, setBaseFlagsMethods 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
-
PxParticleClothBuffer
protected PxParticleClothBuffer() -
PxParticleClothBuffer
protected PxParticleClothBuffer(long address)
-
-
Method Details
-
wrapPointer
-
arrayGet
-
getRestPositions
Get rest positions for this particle buffer.- Returns:
- A pointer to a device buffer containing the rest positions packed as PxVec4(pos.x, pos.y, pos.z, 0.0f).
-
getTriangles
Get the triangle indices for this particle buffer.- Returns:
- A pointer to a device buffer containing the triangle indices for this cloth buffer.
-
setNbTriangles
public void setNbTriangles(int nbTriangles) Set the number of triangles for this particle buffer.- Parameters:
nbTriangles- The number of triangles for this particle cloth buffer.
-
getNbTriangles
public int getNbTriangles()Get the number of triangles for this particle buffer.- Returns:
- The number triangles for this cloth buffer.
-
getNbSprings
public int getNbSprings()Get the number of springs in this particle buffer.- Returns:
- The number of springs in this cloth buffer.
-
getSprings
Get the springs for this particle buffer.- Returns:
- A pointer to a device buffer containing the springs for this cloth buffer.
-
setCloths
Set cloths for this particle buffer.- Parameters:
cloths- A pointer to a PxPartitionedParticleCloth.See #PxPartitionedParticleCloth, #PxParticleClothPreProcessor
-