- Timestamp:
- Oct 29, 2005, 2:27:24 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/weapons/test_bullet.cc
r5447 r5448 103 103 TestBullet::explosionParticles->setRadius(.5, 20.0); 104 104 TestBullet::explosionParticles->setRadius(1.0, 3.0); 105 TestBullet::explosionParticles->setColor(0.0, 0,1,0,. 7);105 TestBullet::explosionParticles->setColor(0.0, 0,1,0,.9); 106 106 TestBullet::explosionParticles->setColor(0.5, .8,.8,0,.5); 107 107 TestBullet::explosionParticles->setColor(1.0, 1,1,1,.0); … … 111 111 112 112 this->emitter->setEmissionRate(20.0); 113 this->emitter->setEmissionVelocity( 10.0);113 this->emitter->setEmissionVelocity(3.0); 114 114 } 115 115 … … 159 159 void TestBullet::destroy () 160 160 { 161 printf("DESTROY TestBullet\n");162 this->lifeCycle = .95; 161 PRINTF(5)("DESTROY TestBullet\n"); 162 this->lifeCycle = .95; //!< @todo calculate this usefully. 163 163 ParticleEngine::getInstance()->breakConnection(this->emitter, TestBullet::trailParticles); 164 164 ParticleEngine::getInstance()->addConnection(this->emitter, TestBullet::explosionParticles); 165 165 166 this->emitter->setEmissionRate( 1000.0);166 this->emitter->setEmissionRate(30.0); 167 167 this->emitter->setEmissionVelocity(50.0); 168 168 // this->deactivate();
Note: See TracChangeset
for help on using the changeset viewer.