java.lang.Object
physx.NativeObject
physx.common.PxBase
physx.particles.PxParticleBuffer
physx.particles.PxParticleAndDiffuseBuffer
A particle buffer used to simulate diffuse particles.
See #PxPhysics::createParticleAndDiffuseBuffer.
-
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 PxParticleAndDiffuseBufferarrayGet(long baseAddress, int index) Get the parameters currently used for diffuse particle simulation.Get a device buffer of positions and remaining lifetimes for the diffuse particles.intGet maximum possible number of diffuse particles.intGet number of currently active diffuse particles.voidSet the parameters for diffuse particle simulation.voidsetMaxActiveDiffuseParticles(int maxActiveDiffuseParticles) Set the maximum possible number of diffuse particles for this buffer.static PxParticleAndDiffuseBufferwrapPointer(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
-
PxParticleAndDiffuseBuffer
protected PxParticleAndDiffuseBuffer() -
PxParticleAndDiffuseBuffer
protected PxParticleAndDiffuseBuffer(long address)
-
-
Method Details
-
wrapPointer
-
arrayGet
-
getDiffusePositionLifeTime
Get a device buffer of positions and remaining lifetimes for the diffuse particles.- Returns:
- A device buffer containing positions and lifetimes of diffuse particles packed as PxVec4(pos.x, pos.y, pos.z, lifetime).
-
getNbActiveDiffuseParticles
public int getNbActiveDiffuseParticles()Get number of currently active diffuse particles.- Returns:
- The number of currently active diffuse particles.
-
setMaxActiveDiffuseParticles
public void setMaxActiveDiffuseParticles(int maxActiveDiffuseParticles) Set the maximum possible number of diffuse particles for this buffer.- Parameters:
maxActiveDiffuseParticles- the maximum number of active diffuse particles.Note: Must be in the range [0, PxParticleAndDiffuseBuffer::getMaxDiffuseParticles()]
-
getMaxDiffuseParticles
public int getMaxDiffuseParticles()Get maximum possible number of diffuse particles.- Returns:
- The maximum possible number diffuse particles.
-
setDiffuseParticleParams
Set the parameters for diffuse particle simulation.- Parameters:
params- The diffuse particle parameters.See #PxDiffuseParticleParams
-
getDiffuseParticleParams
Get the parameters currently used for diffuse particle simulation.- Returns:
- A PxDiffuseParticleParams structure.
-