Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5448 in orxonox.OLD for trunk/src


Ignore:
Timestamp:
Oct 29, 2005, 2:27:24 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: more usefull performance

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/weapons/test_bullet.cc

    r5447 r5448  
    103103    TestBullet::explosionParticles->setRadius(.5, 20.0);
    104104    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);
    106106    TestBullet::explosionParticles->setColor(0.5, .8,.8,0,.5);
    107107    TestBullet::explosionParticles->setColor(1.0, 1,1,1,.0);
     
    111111
    112112  this->emitter->setEmissionRate(20.0);
    113   this->emitter->setEmissionVelocity(10.0);
     113  this->emitter->setEmissionVelocity(3.0);
    114114}
    115115
     
    159159void TestBullet::destroy ()
    160160{
    161   printf("DESTROY TestBullet\n");
    162   this->lifeCycle = .95;
     161  PRINTF(5)("DESTROY TestBullet\n");
     162  this->lifeCycle = .95; //!< @todo calculate this usefully.
    163163  ParticleEngine::getInstance()->breakConnection(this->emitter, TestBullet::trailParticles);
    164164  ParticleEngine::getInstance()->addConnection(this->emitter, TestBullet::explosionParticles);
    165165
    166   this->emitter->setEmissionRate(1000.0);
     166  this->emitter->setEmissionRate(30.0);
    167167  this->emitter->setEmissionVelocity(50.0);
    168168//  this->deactivate();
Note: See TracChangeset for help on using the changeset viewer.