#include <PxParticleFluidReadData.h>
Public Member Functions | |
virtual | ~PxParticleFluidReadData () |
virtual destructor | |
Public Attributes | |
PxStrideIterator< const PxF32 > | densityBuffer |
Particle density data. |
Additionally to PxParticleReadData, the density can be read from the SDK.
virtual PxParticleFluidReadData::~PxParticleFluidReadData | ( | ) | [inline, virtual] |
virtual destructor
PxStrideIterator<const PxF32> PxParticleFluidReadData::densityBuffer |
Particle density data.
The density depends on how close particles are to each other. The density values are normalized such that:
The density buffer is only guaranteed to be valid after the particle fluid has been simulated. Otherwise densityBuffer.ptr() is NULL. This also applies to particle fluids that are not assigned to a scene.