Public Member Functions | Public Attributes | List of all members
PxParticleCreationData Class Reference

Descriptor-like user-side class describing buffers for particle creation. More...

#include <PxParticleCreationData.h>

Collaboration diagram for PxParticleCreationData:
Collaboration graph
[legend]

Public Member Functions

PX_INLINE void setToDefault ()
 (Re)sets the structure to the default. More...
 
PX_INLINE bool isValid () const
 Returns true if the current settings are valid. More...
 
PX_INLINE PxParticleCreationData ()
 Constructor sets to default. More...
 

Public Attributes

PxU32 numParticles
 The number of particles stored in the buffer. More...
 
PxStrideIterator< const PxU32indexBuffer
 Particle index data. More...
 
PxStrideIterator< const PxVec3positionBuffer
 Particle position data. More...
 
PxStrideIterator< const PxVec3velocityBuffer
 Particle velocity data. More...
 
PxStrideIterator< const PxF32restOffsetBuffer
 Particle rest offset data. More...
 
PxStrideIterator< const PxU32flagBuffer
 Particle flags. More...
 

Detailed Description

Descriptor-like user-side class describing buffers for particle creation.

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.

See Also
PxParticleBase::createParticles()

Member Data Documentation

PxStrideIterator<const PxU32> PxParticleCreationData::flagBuffer

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.

See Also
PxParticleFlag
PxStrideIterator<const PxU32> PxParticleCreationData::indexBuffer

Particle index data.

When creating particles, providing the particle indices is mandatory.

PxU32 PxParticleCreationData::numParticles

The number of particles stored in the buffer.

PxStrideIterator<const PxVec3> PxParticleCreationData::positionBuffer

Particle position data.

When creating particles, providing the particle positions is mandatory.

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.

See Also
PxParticleBaseFlag.ePER_PARTICLE_REST_OFFSET.
PxStrideIterator<const PxVec3> PxParticleCreationData::velocityBuffer

Particle velocity data.

Providing velocity data is optional.


The documentation for this class was generated from the following file:


Copyright © 2008-2015 NVIDIA Corporation, 2701 San Tomas Expressway, Santa Clara, CA 95050 U.S.A. All rights reserved. www.nvidia.com