Changeset 6620 in orxonox.OLD for trunk/src/lib
- Timestamp:
- Jan 19, 2006, 6:31:39 PM (19 years ago)
- Location:
- trunk/src/lib/particles
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/particles/particle_emitter.cc
r6619 r6620 268 268 you may want to use the animation class 269 269 */ 270 void ParticleEmitter::tick(float dt, ParticleSystem* system) 271 { 270 void ParticleEmitter::tick(float dt) 271 { 272 assert (this->system != NULL); 272 273 if (likely(dt > 0.0 && this->emissionRate > 0.0)) 273 274 { … … 308 309 Quaternion moment = Quaternion(this->momentum + this->momentumRandom, randDir); 309 310 310 system->addParticle(this->getAbsCoor() + extension - equalSpread, velocityV, orient, moment);311 this->system->addParticle(this->getAbsCoor() + extension - equalSpread, velocityV, orient, moment); 311 312 } 312 313 } -
trunk/src/lib/particles/particle_emitter.h
r6619 r6620 45 45 void start(); 46 46 void stop(); 47 void tick(float dt , ParticleSystem* system);47 void tick(float dt); 48 48 49 49 void setSystem(ParticleSystem* system); -
trunk/src/lib/particles/particle_system.cc
r6619 r6620 382 382 std::list<ParticleEmitter*>::iterator emitter; 383 383 for (emitter = this->emitters.begin(); emitter != this->emitters.end(); emitter++) 384 (*emitter)->tick(dt , this);384 (*emitter)->tick(dt); 385 385 } 386 386
Note: See TracChangeset
for help on using the changeset viewer.