PxParticleFluidReadData Class Reference
[particles (deprecated)]
Data layout descriptor for reading fluid particle data from the SDK. (deprecated).
More...
#include <PxParticleFluidReadData.h>
Inheritance diagram for PxParticleFluidReadData:
Collaboration diagram for PxParticleFluidReadData:
Public Member Functions | |
virtual | ~PxParticleFluidReadData () |
virtual destructor | |
Public Attributes | |
PxStrideIterator< const PxF32 > | densityBuffer |
Particle density data. |
Detailed Description
Data layout descriptor for reading fluid particle data from the SDK. (deprecated).Additionally to PxParticleReadData, the density can be read from the SDK.
- Deprecated:
- The PhysX particle feature has been deprecated in PhysX version 3.4
Constructor & Destructor Documentation
virtual PxParticleFluidReadData::~PxParticleFluidReadData | ( | ) | [inline, virtual] |
virtual destructor
Member Data Documentation
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:
- Particles which have no neighbors (no particles closer than restParticleDistance * 2) will have a density of zero.
- Particles which are at rest density (distances corresponding to restParticleDistance in the mean) will have a density of one.
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.
The documentation for this class was generated from the following file:
Copyright © 2008-2017 NVIDIA Corporation, 2701 San Tomas Expressway, Santa Clara, CA 95050 U.S.A. All rights reserved. www.nvidia.com