Apex emitter actor class. Emits particles within a given shape. More...
#include <EmitterActor.h>
Classes | |
class | EmitterValidateCallback |
Public Member Functions | |
virtual EmitterAsset * | getEmitterAsset () const =0 |
Returns the asset the instance has been created from. | |
virtual EmitterGeomExplicit * | isExplicitGeom ()=0 |
Returns the explicit geometry for THIS ACTOR only. | |
virtual PxMat44 | getGlobalPose () const =0 |
Gets the global pose. | |
virtual void | setCurrentPose (const PxTransform &pose)=0 |
Sets the curent pose of the emitter. | |
virtual void | setCurrentPosition (const PxVec3 &pos)=0 |
Sets the curent position of the emitter. | |
virtual void | setAttachActor (PxActor *)=0 |
PhysX SDK 3.X. Attaches the emitter to an actor. | |
virtual void | setAttachRelativePose (const PxTransform &pose)=0 |
sets the relative pose of the emitter in the space of the actor to which it is attached | |
virtual const PxActor * | getAttachActor () const =0 |
PhysX SDK 3.X. Retrieves the actor, to which the emitter is attached. NULL is returned for an unattached emitter. | |
virtual const PxMat44 | getAttachRelativePose () const =0 |
Retrieves the relative pose of the emitter in the space of the actor to which it is attached. | |
virtual float | getObjectRadius () const =0 |
Retrieves the particle radius. | |
virtual void | setOverlapTestCollisionGroups (uint32_t)=0 |
Sets collision groups used to reject particles that overlap the geometry. | |
virtual void | startEmit (bool persistent=true)=0 |
start emitting particles | |
virtual void | stopEmit ()=0 |
Stop emitting particles. | |
virtual bool | isEmitting () const =0 |
Returns true if the emitter is emitting particles. | |
virtual const EmitterLodParamDesc & | getLodParamDesc () const =0 |
Gets LOD settings. | |
virtual void | setLodParamDesc (const EmitterLodParamDesc &)=0 |
Sets LOD settings. | |
virtual void | setDensity (const float &)=0 |
Sets the range from which the density of particles within the volume is randomly chosen. | |
virtual void | setRate (const float &)=0 |
Sets the range from which the emission rate is randomly chosen. | |
virtual void | setVelocityLow (const PxVec3 &)=0 |
Sets the range from which the velocity of a particle is randomly chosen. | |
virtual void | setVelocityHigh (const PxVec3 &)=0 |
Sets the range from which the velocity of a particle is randomly chosen. | |
virtual void | setLifetimeLow (const float &)=0 |
Sets the range from which the lifetime of a particle is randomly chosen. | |
virtual void | setLifetimeHigh (const float &)=0 |
Sets the range from which the lifetime of a particle is randomly chosen. | |
virtual void | emitAssetParticles (bool enable)=0 |
Sets whether or not authored asset particles are emitted. | |
virtual bool | getEmitAssetParticles () const =0 |
Gets whether or not authored asset particles are emitted. | |
virtual void | setPreferredRenderVolume (RenderVolume *volume)=0 |
Emitted particles are injected to specified render volume on initial frame. | |
virtual void | getRate (float &) const =0 |
Gets the range from which the emission rate is randomly chosen. | |
virtual uint32_t | getSimParticlesCount () const =0 |
Returns the number of particles in simulation. | |
virtual uint32_t | getActiveParticleCount () const =0 |
Returns the number of particles still alive. | |
virtual void | setDensityGridPosition (const PxVec3 &pos)=0 |
Sets the origin of the density grid used by this emitter. Important, this density grid may be shared with lots of other emitters as well, it is based on the underlying IOS. | |
virtual void | setApexEmitterValidateCallback (EmitterValidateCallback *callback)=0 |
Sets the ApexEmitterPosition validation callback interface. | |
virtual PX_DEPRECATED void | setObjectScale (float scale)=0 |
Sets the uniform overall object scale. | |
virtual PX_DEPRECATED float | getObjectScale (void) const =0 |
Retrieves the uniform overall object scale. | |
virtual void | setCurrentScale (float scale)=0 |
Sets the uniform overall object scale. | |
virtual float | getCurrentScale (void) const =0 |
Retrieves the uniform overall object scale. | |
Protected Member Functions | |
virtual | ~EmitterActor () |
Apex emitter actor class. Emits particles within a given shape.
virtual nvidia::apex::EmitterActor::~EmitterActor | ( | ) | [inline, protected, virtual] |
virtual void nvidia::apex::EmitterActor::emitAssetParticles | ( | bool | enable | ) | [pure virtual] |
Sets whether or not authored asset particles are emitted.
virtual uint32_t nvidia::apex::EmitterActor::getActiveParticleCount | ( | ) | const [pure virtual] |
Returns the number of particles still alive.
virtual const PxActor* nvidia::apex::EmitterActor::getAttachActor | ( | ) | const [pure virtual] |
PhysX SDK 3.X. Retrieves the actor, to which the emitter is attached. NULL is returned for an unattached emitter.
virtual const PxMat44 nvidia::apex::EmitterActor::getAttachRelativePose | ( | ) | const [pure virtual] |
Retrieves the relative pose of the emitter in the space of the actor to which it is attached.
virtual float nvidia::apex::EmitterActor::getCurrentScale | ( | void | ) | const [pure virtual] |
Retrieves the uniform overall object scale.
virtual bool nvidia::apex::EmitterActor::getEmitAssetParticles | ( | ) | const [pure virtual] |
Gets whether or not authored asset particles are emitted.
virtual EmitterAsset* nvidia::apex::EmitterActor::getEmitterAsset | ( | ) | const [pure virtual] |
Returns the asset the instance has been created from.
virtual PxMat44 nvidia::apex::EmitterActor::getGlobalPose | ( | ) | const [pure virtual] |
Gets the global pose.
virtual const EmitterLodParamDesc& nvidia::apex::EmitterActor::getLodParamDesc | ( | ) | const [pure virtual] |
Gets LOD settings.
virtual float nvidia::apex::EmitterActor::getObjectRadius | ( | ) | const [pure virtual] |
Retrieves the particle radius.
virtual PX_DEPRECATED float nvidia::apex::EmitterActor::getObjectScale | ( | void | ) | const [pure virtual] |
Retrieves the uniform overall object scale.
virtual void nvidia::apex::EmitterActor::getRate | ( | float & | ) | const [pure virtual] |
Gets the range from which the emission rate is randomly chosen.
virtual uint32_t nvidia::apex::EmitterActor::getSimParticlesCount | ( | ) | const [pure virtual] |
Returns the number of particles in simulation.
virtual bool nvidia::apex::EmitterActor::isEmitting | ( | ) | const [pure virtual] |
Returns true if the emitter is emitting particles.
virtual EmitterGeomExplicit* nvidia::apex::EmitterActor::isExplicitGeom | ( | ) | [pure virtual] |
Returns the explicit geometry for THIS ACTOR only.
virtual void nvidia::apex::EmitterActor::setApexEmitterValidateCallback | ( | EmitterValidateCallback * | callback | ) | [pure virtual] |
Sets the ApexEmitterPosition validation callback interface.
virtual void nvidia::apex::EmitterActor::setAttachActor | ( | PxActor * | ) | [pure virtual] |
PhysX SDK 3.X. Attaches the emitter to an actor.
PxActor pointer can be NULL to detach existing actor
virtual void nvidia::apex::EmitterActor::setAttachRelativePose | ( | const PxTransform & | pose | ) | [pure virtual] |
sets the relative pose of the emitter in the space of the actor to which it is attached
virtual void nvidia::apex::EmitterActor::setCurrentPose | ( | const PxTransform & | pose | ) | [pure virtual] |
Sets the curent pose of the emitter.
virtual void nvidia::apex::EmitterActor::setCurrentPosition | ( | const PxVec3 & | pos | ) | [pure virtual] |
Sets the curent position of the emitter.
virtual void nvidia::apex::EmitterActor::setCurrentScale | ( | float | scale | ) | [pure virtual] |
Sets the uniform overall object scale.
virtual void nvidia::apex::EmitterActor::setDensity | ( | const float & | ) | [pure virtual] |
Sets the range from which the density of particles within the volume is randomly chosen.
Override authored scalable parameters, if necessary
virtual void nvidia::apex::EmitterActor::setDensityGridPosition | ( | const PxVec3 & | pos | ) | [pure virtual] |
Sets the origin of the density grid used by this emitter. Important, this density grid may be shared with lots of other emitters as well, it is based on the underlying IOS.
virtual void nvidia::apex::EmitterActor::setLifetimeHigh | ( | const float & | ) | [pure virtual] |
Sets the range from which the lifetime of a particle is randomly chosen.
virtual void nvidia::apex::EmitterActor::setLifetimeLow | ( | const float & | ) | [pure virtual] |
Sets the range from which the lifetime of a particle is randomly chosen.
virtual void nvidia::apex::EmitterActor::setLodParamDesc | ( | const EmitterLodParamDesc & | ) | [pure virtual] |
Sets LOD settings.
virtual PX_DEPRECATED void nvidia::apex::EmitterActor::setObjectScale | ( | float | scale | ) | [pure virtual] |
Sets the uniform overall object scale.
virtual void nvidia::apex::EmitterActor::setOverlapTestCollisionGroups | ( | uint32_t | ) | [pure virtual] |
Sets collision groups used to reject particles that overlap the geometry.
virtual void nvidia::apex::EmitterActor::setPreferredRenderVolume | ( | RenderVolume * | volume | ) | [pure virtual] |
Emitted particles are injected to specified render volume on initial frame.
This will work only if you have one renderVolume for each emitter. Set to NULL to clear the preferred volume.
virtual void nvidia::apex::EmitterActor::setRate | ( | const float & | ) | [pure virtual] |
Sets the range from which the emission rate is randomly chosen.
virtual void nvidia::apex::EmitterActor::setVelocityHigh | ( | const PxVec3 & | ) | [pure virtual] |
Sets the range from which the velocity of a particle is randomly chosen.
virtual void nvidia::apex::EmitterActor::setVelocityLow | ( | const PxVec3 & | ) | [pure virtual] |
Sets the range from which the velocity of a particle is randomly chosen.
virtual void nvidia::apex::EmitterActor::startEmit | ( | bool | persistent = true | ) | [pure virtual] |
start emitting particles
If persistent is true, the emitter will emit every frame until stopEmit() is called.
virtual void nvidia::apex::EmitterActor::stopEmit | ( | ) | [pure virtual] |
Stop emitting particles.