Changeset 3930 in orxonox.OLD for orxonox/branches/particleEngine/src/lib/graphics/particles/particle_emitter.cc
- Timestamp:
- Apr 22, 2005, 11:23:48 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/particleEngine/src/lib/graphics/particles/particle_emitter.cc
r3929 r3930 29 29 this->setClassName ("ParticleEmitter"); 30 30 this->direction = direction; 31 this-> angle = angle;31 this->setSpread(angle); 32 32 this->emissionRate = emissionRate; 33 33 this->velocity = velocity; 34 this->timeToLive = ttl;35 34 } 36 35 … … 64 63 \brief set the angle of the emitter 65 64 \param angle around the direction in which there are particles to be emitted 65 \param random A random spread-angle, the +- randomness of this option 66 66 67 67 if you want to change the value of this variable during emission time (to make it more dynamic) 68 you will haveto use the animation class68 you may want to use the animation class 69 69 */ 70 void ParticleEmitter::set Angle(float angle)70 void ParticleEmitter::setSpread(float angle, float random) 71 71 {} 72 72 … … 75 75 \brief set the emission rate 76 76 \param sets the number of particles emitted per second 77 \param random A random emissionRate, the +- randomness of this option 77 78 78 79 if you want to change the value of this variable during emission time (to make it more dynamic) 79 you will haveto use the animation class80 you may want to use the animation class 80 81 */ 81 void ParticleEmitter::setEmissionRate(float emissionRate )82 void ParticleEmitter::setEmissionRate(float emissionRate, float random) 82 83 {} 83 84 … … 85 86 /** 86 87 \brief sets the velocity of all particles emitted 87 \param velocity of the emitted particles 88 \param velocity The starting velocity of the emitted particles 89 \param random A random starting velocity, the +- randomness of this option 88 90 89 91 if you want to change the value of this variable during emission time (to make it more dynamic) 90 you will haveto use the animation class92 you may want to use the animation class 91 93 */ 92 void ParticleEmitter::setVelocity(float velocity )94 void ParticleEmitter::setVelocity(float velocity, float random) 93 95 {} 94 96 … … 98 100 99 101 if you want to change the value of this variable during emission time (to make it more dynamic) 100 you will haveto use the animation class102 you may want to use the animation class 101 103 */ 102 void ParticleEmitter::setTTL(float ttl)103 {}104 105 104 106 105 /**
Note: See TracChangeset
for help on using the changeset viewer.