Changeset 3929 in orxonox.OLD for orxonox/branches/particleEngine/src/lib/graphics/particles/particle_emitter.cc
- Timestamp:
- Apr 21, 2005, 5:06:20 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/particleEngine/src/lib/graphics/particles/particle_emitter.cc
r3928 r3929 32 32 this->emissionRate = emissionRate; 33 33 this->velocity = velocity; 34 this->t tl= ttl;34 this->timeToLive = ttl; 35 35 } 36 36 … … 43 43 ParticleEmitter::~ParticleEmitter () 44 44 {} 45 46 47 /** 48 \brief this start the emitter 49 */ 50 void ParticleEmitter::start() {} 51 52 53 /** 54 \brief this stops the emitter 55 */ 56 void ParticleEmitter::stop() {} 57 58 59 60 61 /* these are Animation interfaces: so you can change spec values as you want */ 62 63 /** 64 \brief set the angle of the emitter 65 \param angle around the direction in which there are particles to be emitted 66 67 if you want to change the value of this variable during emission time (to make it more dynamic) 68 you will have to use the animation class 69 */ 70 void ParticleEmitter::setAngle(float angle) 71 {} 72 73 74 /** 75 \brief set the emission rate 76 \param sets the number of particles emitted per second 77 78 if you want to change the value of this variable during emission time (to make it more dynamic) 79 you will have to use the animation class 80 */ 81 void ParticleEmitter::setEmissionRate(float emissionRate) 82 {} 83 84 85 /** 86 \brief sets the velocity of all particles emitted 87 \param velocity of the emitted particles 88 89 if you want to change the value of this variable during emission time (to make it more dynamic) 90 you will have to use the animation class 91 */ 92 void ParticleEmitter::setVelocity(float velocity) 93 {} 94 95 /** 96 \brief this set the time to life of a particle, after which it will die 97 \param the time to live in seconds 98 99 if you want to change the value of this variable during emission time (to make it more dynamic) 100 you will have to use the animation class 101 */ 102 void ParticleEmitter::setTTL(float ttl) 103 {} 104 105 106 /** 107 \brief this is called from the particle emitter to give the pulse of time... 108 \param time passed since last tick 109 */ 110 void ParticleEmitter::tick(float dt) 111 {}
Note: See TracChangeset
for help on using the changeset viewer.