Changeset 7105 in orxonox.OLD for trunk/src/world_entities
- Timestamp:
- Feb 7, 2006, 10:17:17 PM (19 years ago)
- Location:
- trunk/src/world_entities
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/effects/explosion.cc
r7104 r7105 40 40 this->toList(OM_DEAD_TICK); 41 41 42 this->emitter = new BoxEmitter(Vector(10,10,10), 1000, 30, M_2_PI);42 this->emitter = new BoxEmitter(Vector(10,10,10), 800, 30, M_2_PI); 43 43 this->emitter->addNodeFlags(PNODE_PROHIBIT_DELETE_WITH_PARENT); 44 44 this->emitter->setParent(this); … … 46 46 47 47 this->lifeCycle = 0.0f; 48 this->lifeTime = 1.0f;48 this->lifeTime = .5f; 49 49 50 50 } … … 68 68 { 69 69 Explosion* explosion = dynamic_cast<Explosion*>(Explosion::fastFactory->resurrect()); 70 explosion->set Parent(position);70 explosion->setAbsCoor(position->getAbsCoor()); 71 71 explosion->emitter->setSize(size); 72 72 explosion->activate(); … … 81 81 Explosion::explosionParticles->setName("ExplosionExplosionParticles"); 82 82 Explosion::explosionParticles->setMaterialTexture("maps/radial-trans-noise.png"); 83 Explosion::explosionParticles->setLifeSpan( .5, .3);83 Explosion::explosionParticles->setLifeSpan(1.5, .3); 84 84 Explosion::explosionParticles->setRadius(0.0, 10); 85 85 Explosion::explosionParticles->setRadius(.5, 15.0); … … 92 92 93 93 this->emitter->setSystem(Explosion::explosionParticles); 94 this->emitter->updateNode(.01); 94 95 this->toList(OM_DEAD_TICK); 95 96 this->lifeCycle = 0.0; … … 101 102 this->emitter->setSystem(NULL); 102 103 this->toList(OM_DEAD); 103 this->emitter->setParent(PNode::getNullParent());104 104 Explosion::fastFactory->kill(this); 105 105 } … … 112 112 void Explosion::tick (float dt) 113 113 { 114 printf("%f %f\n", this->lifeCycle, this->lifeTime); 114 115 this->lifeCycle += dt; 115 116 if(this->lifeTime < this->lifeCycle) -
trunk/src/world_entities/npcs/ground_turret.cc
r7104 r7105 178 178 { 179 179 this->setAbsDirSoft(Quaternion(-90, Vector(0,0,1)), 90); 180 Explosion::explode(this, Vector( 5,50,0));180 Explosion::explode(this, Vector(10,10,10)); 181 181 } 182 182 -
trunk/src/world_entities/space_ships/turbine_hover.cc
r7072 r7105 272 272 void TurbineHover::tick (float dt) 273 273 { 274 this->debugNode(1);274 // this->debugNode(1); 275 275 Playable::tick(dt); 276 276
Note: See TracChangeset
for help on using the changeset viewer.