Changeset 3929 in orxonox.OLD for orxonox/branches
- Timestamp:
- Apr 21, 2005, 5:06:20 PM (20 years ago)
- Location:
- orxonox/branches/particleEngine/src/lib/graphics/particles
- Files:
-
- 2 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 {} -
orxonox/branches/particleEngine/src/lib/graphics/particles/particle_emitter.h
r3927 r3929 22 22 virtual ~ParticleEmitter(void); 23 23 24 /* controlling the emitter: interface */ 24 25 void start(); 25 26 void stop(); 26 27 28 /* controlling the behavour: these can be used as Animation interfaces */ 29 void setAngle(float angle); 30 void setEmissionRate(float emissionRate); 31 void setVelocity(float velocity); 32 void setTTL(float ttl); 33 34 /* some functions needed for internal use */ 27 35 void tick(float dt); 28 36 … … 33 41 float velocity; //!< the contant speed a particle gets if been emitted 34 42 float timeToLive; //!< this is the global time to live (ttl) definition 35 36 43 }; 37 44
Note: See TracChangeset
for help on using the changeset viewer.