Changeset 7104 in orxonox.OLD for trunk/src/world_entities/effects
- Timestamp:
 - Feb 7, 2006, 10:02:46 PM (20 years ago)
 - File:
 - 
          
- 1 edited
 
- 
          trunk/src/world_entities/effects/explosion.cc (modified) (4 diffs)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
        
trunk/src/world_entities/effects/explosion.cc
r7103 r7104 38 38 { 39 39 this->setClassID(CL_EXPLOSION, "Explosion"); 40 this->toList(OM_DEAD_TICK); 40 41 41 this->emitter = new BoxEmitter(Vector(10,10,10), 300, 50, M_2_PI);42 this->emitter = new BoxEmitter(Vector(10,10,10), 1000, 30, M_2_PI); 42 43 this->emitter->addNodeFlags(PNODE_PROHIBIT_DELETE_WITH_PARENT); 43 44 this->emitter->setParent(this); … … 45 46 46 47 this->lifeCycle = 0.0f; 47 this->lifeTime = 0.5f;48 this->lifeTime = 1.0f; 48 49 49 50 } … … 84 85 Explosion::explosionParticles->setRadius(.5, 15.0); 85 86 Explosion::explosionParticles->setRadius(1.0, 10.0); 86 Explosion::explosionParticles->setColor(0.0, 1,0,0,1);87 Explosion::explosionParticles->setColor(0.0, 0,1,0,1); 87 88 Explosion::explosionParticles->setColor(0.5, .8,.8,0,.8); 88 89 Explosion::explosionParticles->setColor(0.8, .8,.8,.3,.8); … … 91 92 92 93 this->emitter->setSystem(Explosion::explosionParticles); 93 94 this->updateNode(0);95 this->emitter->setEmissionRate(45.0);96 this->emitter->setEmissionVelocity(0.0);97 94 this->toList(OM_DEAD_TICK); 98 95 this->lifeCycle = 0.0;  
Note: See TracChangeset
          for help on using the changeset viewer.
      


            






