Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 23, 2005, 2:48:57 PM (20 years ago)
Author:
bensch
Message:

orxonox/branches/particleEngine: debug function-headers written

File:
1 edited

Legend:

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

    r3942 r3944  
    166166  AnimationPlayer::getInstance()->debug();
    167167  delete AnimationPlayer::getInstance(); // this should be at the end of the unloading sequence.
    168 
     168 
     169  ParticleEngine::getInstance()->debug();
    169170  delete ParticleEngine::getInstance();
    170171
     
    379380            ParticleEmitter* testEmitter,* testEmitter2;
    380381            ParticleSystem* testSystem;
    381             testEmitter = new ParticleEmitter(Vector(-1,0,0), M_PI_2, 1200.0, .5);
     382            testEmitter = new ParticleEmitter(Vector(-1,0,0), M_PI_2, 120.0, .5);
    382383            testEmitter->setParent(localPlayer);
    383384            testEmitter->setRelCoor(Vector(-3, 0, 0));
    384 
    385             testSystem = new ParticleSystem(100000);
     385            testEmitter->setName("ship emitter");
     386            testEmitter2 = new ParticleEmitter(Vector(1,0,0), .1, 120.0, 1);
     387            testEmitter2->setParent(tn);
     388            testEmitter2->setName("crap emitter");
     389           
     390            testSystem = new ParticleSystem(1000);
    386391            testSystem->setLifeSpan(1, .8);
    387392            testSystem->setRadius(1.0, 0.0, .5);
    388393            testSystem->setConserve(.8);
    389394            testSystem->setInheritSpeed(1);
    390 
     395            testSystem->setName("system");
    391396            ParticleEngine::getInstance()->addConnection(testEmitter, testSystem);
     397            ParticleEngine::getInstance()->addConnection(testEmitter2, testSystem);
     398            ParticleEngine::getInstance()->debug();
    392399
    393400            break;
Note: See TracChangeset for help on using the changeset viewer.