#include <PxParticleCreationData.h>
Public Member Functions | |
PX_INLINE void | setToDefault () |
(Re)sets the structure to the default. | |
PX_INLINE bool | isValid () const |
Returns true if the current settings are valid. | |
PX_INLINE | PxParticleCreationData () |
Constructor sets to default. | |
Public Attributes | |
PxU32 | numParticles |
The number of particles stored in the buffer. | |
PxStrideIterator< const PxU32 > | indexBuffer |
Particle index data. | |
PxStrideIterator< const PxVec3 > | positionBuffer |
Particle position data. | |
PxStrideIterator< const PxVec3 > | velocityBuffer |
Particle velocity data. | |
PxStrideIterator< const PxF32 > | restOffsetBuffer |
Particle rest offset data. | |
PxStrideIterator< const PxU32 > | flagBuffer |
Particle flags. |
PxParticleCreationData is used to create particles within the SDK. The SDK copies the particle data referenced by PxParticleCreationData, it may therefore be deallocated right after the creation call returned.
Particle flags.
PxParticleFlag.eVALID, PxParticleFlag.eCOLLISION_WITH_STATIC, PxParticleFlag.eCOLLISION_WITH_DYNAMIC, PxParticleFlag.eCOLLISION_WITH_DRAIN, PxParticleFlag.eSPATIAL_DATA_STRUCTURE_OVERFLOW are all flags that can't be set on particle creation. They are written by the SDK exclusively.
Providing flag data is optional.
Referenced by PxParticleCreationData().
Particle index data.
When creating particles, providing the particle indices is mandatory.
Referenced by isValid(), and PxParticleCreationData().
Particle position data.
When creating particles, providing the particle positions is mandatory.
Referenced by isValid(), and PxParticleCreationData().
PxStrideIterator<const PxF32> PxParticleCreationData::restOffsetBuffer |
Particle rest offset data.
Values need to be in the range [0.0f, restOffset]. If PxParticleBaseFlag.ePER_PARTICLE_REST_OFFSET is set, providing per particle rest offset data is mandatory.
Referenced by PxParticleCreationData().
Particle velocity data.
Providing velocity data is optional.
Referenced by PxParticleCreationData().