Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 13, 2005, 9:04:50 PM (19 years ago)
Author:
bensch
Message:

orxonox/branches/particleEngine: implemented sparks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/particleEngine/src/story_entities/world.cc

    r4129 r4173  
    493493
    494494
    495   ParticleSystem* system = new ParticleSystem(1000);
    496   system->setLifeSpan(1);
     495  ParticleSystem* system = new ParticleSystem(1000, PARTICLE_SPARK);
     496  system->setLifeSpan(.5);
    497497  system->setRadius(2, 0, 2, 0);
    498   ParticleEmitter* emitter = new ParticleEmitter(Vector(-1, 0, 0), 0, 1000, 0);
     498
     499  ParticleEmitter* emitter = new ParticleEmitter(Vector(-1, 0, 0), M_PI_4, 1000, .05);
    499500  emitter->setParent(this->localPlayer);
    500501 
     
    962963
    963964  TextEngine::getInstance()->draw();
    964   particleEngine->draw();
     965  particleEngine->draw((float)dt/1000.0); //!< \todo should be dts like in the Trunk;
    965966
    966967  lightMan->draw(); // must be at the end of the drawing procedure, otherwise Light cannot be handled as PNodes //
Note: See TracChangeset for help on using the changeset viewer.