PxDiffuseParticleParams#

Defined in include/PxParticleBuffer.h

class PxDiffuseParticleParams#

Parameters to configure the behavior of diffuse particles.

Public Functions

inline PxDiffuseParticleParams()#

Construct parameters with default values.

inline void setToDefault()#

(re)sets the structure to the default.

Public Members

PxReal threshold#

Particles with potential value greater than the threshold will spawn diffuse particles.

PxReal lifetime#

Diffuse particle will be removed after the specified lifetime.

PxReal airDrag#

Air drag force factor for spray particles.

PxReal bubbleDrag#

Fluid drag force factor for bubble particles.

PxReal buoyancy#

Buoyancy force factor for bubble particles.

PxReal kineticEnergyWeight#

Contribution from kinetic energy when deciding diffuse particle creation.

PxReal pressureWeight#

Contribution from pressure when deciding diffuse particle creation.

PxReal divergenceWeight#

Contribution from divergence when deciding diffuse particle creation.

PxReal collisionDecay#

Decay factor of diffuse particles’ lifetime after they collide with shapes.

bool useAccurateVelocity#

If true, enables accurate velocity estimation when using PBD solver.