19#ifndef HEADER_SMOKE_HPP
20#define HEADER_SMOKE_HPP
24 namespace scene {
class ISceneNode;
class IParticleEmitter; }
28#include "utils/leak_check.hpp"
29#include "utils/no_copy.hpp"
30#include "utils/vec3.hpp"
49 scene::ISceneNode* m_parent;
57 unsigned int m_magic_number;
65 bool m_randomize_initial_y;
75 scene::ISceneNode* parent = NULL,
76 bool randomize_initial_y = false,
77 bool important = false);
79 virtual
void update (
float dt);
82 int getCreationRate();
83 float getCreationRateFloat() {
return m_min_rate;}
88 const ParticleKind* getParticlesInfo()
const {
return m_particle_type; }
92 void resizeBox(
float size);
99 void addHeightMapAffector(
Track* t);
101 bool randomizeInitialY()
const {
return m_randomize_initial_y; }
Definition: material.hpp:48
Utility class, you can inherit from this class to disallow the assignment operator and copy construct...
Definition: no_copy.hpp:26
manages smoke particle effects
Definition: particle_emitter.hpp:42
void unsetNode()
call this if the node was freed otherwise
Definition: particle_emitter.hpp:97
void setCreationRateAbsolute(float fraction)
Sets the absolute creation rate (in particles per second).
Definition: particle_emitter.cpp:130
float m_min_rate
The irrlicht emitter contains this info, but as an int.
Definition: particle_emitter.hpp:63
void setRotation(const Vec3 &rot)
Sets the rotation of the particle emitter.
Definition: particle_emitter.cpp:160
STKParticle * m_node
STK particle systems.
Definition: particle_emitter.hpp:45
int m_emission_decay_rate
Decay of emission rate, in particles per second.
Definition: particle_emitter.hpp:60
void setCreationRateRelative(float f)
Sets the creation rate as a relative fraction between minimum (f=0) and maximum (f=1) of the creation...
Definition: particle_emitter.cpp:117
scene::IParticleEmitter * m_emitter
The emitters.
Definition: particle_emitter.hpp:53
void setPosition(const Vec3 &pos)
Sets the position of the particle emitter.
Definition: particle_emitter.cpp:151
type of particles
Definition: particle_kind.hpp:42
Definition: stk_particle.hpp:39
Definition: track.hpp:114
A wrapper around bullets btVector3 to include conventient conversion functions (e....
Definition: vec3.hpp:35