manages smoke particle effects
More...
#include <particle_emitter.hpp>
|
|
| ParticleEmitter (const ParticleKind *type, const Vec3 &position, scene::ISceneNode *parent=NULL, bool randomize_initial_y=false, bool important=false) |
| |
|
virtual | ~ParticleEmitter () |
| | Destructor, removes.
|
| |
|
virtual void | update (float dt) |
| |
| void | setCreationRateAbsolute (float fraction) |
| | Sets the absolute creation rate (in particles per second). More...
|
| |
| void | setCreationRateRelative (float f) |
| | Sets the creation rate as a relative fraction between minimum (f=0) and maximum (f=1) of the creation rates defined in the particle kind. More...
|
| |
|
int | getCreationRate () |
| |
|
float | getCreationRateFloat () |
| |
| void | setPosition (const Vec3 &pos) |
| | Sets the position of the particle emitter. More...
|
| |
| void | setRotation (const Vec3 &rot) |
| | Sets the rotation of the particle emitter. More...
|
| |
|
const ParticleKind * | getParticlesInfo () const |
| |
|
void | setParticleType (const ParticleKind *p) |
| |
|
void | resizeBox (float size) |
| |
|
STKParticle * | getNode () |
| |
|
void | unsetNode () |
| | call this if the node was freed otherwise
|
| |
|
void | addHeightMapAffector (Track *t) |
| |
|
bool | randomizeInitialY () const |
| |
manages smoke particle effects
◆ setCreationRateAbsolute()
| void ParticleEmitter::setCreationRateAbsolute |
( |
float |
f | ) |
|
Sets the absolute creation rate (in particles per second).
- Parameters
-
| f | The creation rate (in particles per second). |
◆ setCreationRateRelative()
| void ParticleEmitter::setCreationRateRelative |
( |
float |
fraction | ) |
|
Sets the creation rate as a relative fraction between minimum (f=0) and maximum (f=1) of the creation rates defined in the particle kind.
- Parameters
-
◆ setPosition()
| void ParticleEmitter::setPosition |
( |
const Vec3 & |
pos | ) |
|
Sets the position of the particle emitter.
- Parameters
-
| pos | The position for the particle emitter. |
◆ setRotation()
| void ParticleEmitter::setRotation |
( |
const Vec3 & |
rot | ) |
|
Sets the rotation of the particle emitter.
- Parameters
-
| pos | The rotation for the particle emitter. |
◆ m_emitter
| scene::IParticleEmitter* ParticleEmitter::m_emitter |
|
private |
The emitters.
Access to these is needed to adjust the number of particles per second.
◆ m_min_rate
| float ParticleEmitter::m_min_rate |
|
private |
The irrlicht emitter contains this info, but as an int.
We want it as a float
The documentation for this class was generated from the following files: