Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 19, 2006, 6:23:56 PM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: rendering without the ParticleEngine, so now we are FAST :)

File:
1 edited

Legend:

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

    r6434 r6619  
    2323#include "class_list.h"
    2424
    25 #include "particle_engine.h"
    2625#include "particle_emitter.h"
    2726#include "particle_system.h"
     
    105104  }
    106105
    107   ParticleEngine::getInstance()->addConnection(this->emitter, TestBullet::trailParticles);
     106  this->emitter->setSystem(TestBullet::trailParticles);
    108107
    109108  this->emitter->setEmissionRate(20.0);
     
    114113void TestBullet::deactivate()
    115114{
    116   ParticleEngine::getInstance()->breakConnections(this->emitter);
     115  this->emitter->setSystem(NULL);
    117116  this->lifeCycle = 0.0;
    118117  this->toList(OM_NULL);
     
    157156  PRINTF(5)("DESTROY TestBullet\n");
    158157  this->lifeCycle = .95; //!< @todo calculate this usefully.
    159   ParticleEngine::getInstance()->breakConnection(this->emitter, TestBullet::trailParticles);
    160   ParticleEngine::getInstance()->addConnection(this->emitter, TestBullet::explosionParticles);
     158  this->emitter->setSystem(TestBullet::explosionParticles);
    161159
    162160  this->emitter->setEmissionRate(30.0);
Note: See TracChangeset for help on using the changeset viewer.