Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 23, 2005, 1:28:24 PM (20 years ago)
Author:
bensch
Message:

orxonox/branches/particleEngine: minor patches, and now it renders particle-faces

File:
1 edited

Legend:

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

    r3938 r3942  
    379379            ParticleEmitter* testEmitter,* testEmitter2;
    380380            ParticleSystem* testSystem;
    381             testEmitter = new ParticleEmitter(Vector(-1,0,0), M_PI_2, 1200.0, 1);
     381            testEmitter = new ParticleEmitter(Vector(-1,0,0), M_PI_2, 1200.0, .5);
    382382            testEmitter->setParent(localPlayer);
    383             testEmitter2 = new ParticleEmitter(Vector(-1,0,0), .1, 1200, 1);
    384             testEmitter2->setParent(tn);
     383            testEmitter->setRelCoor(Vector(-3, 0, 0));
    385384
    386385            testSystem = new ParticleSystem(100000);
    387             testSystem->setLifeSpan(3);
     386            testSystem->setLifeSpan(1, .8);
     387            testSystem->setRadius(1.0, 0.0, .5);
    388388            testSystem->setConserve(.8);
    389389            testSystem->setInheritSpeed(1);
    390390
    391391            ParticleEngine::getInstance()->addConnection(testEmitter, testSystem);
    392             ParticleEngine::getInstance()->addConnection(testEmitter2, testSystem);
    393392
    394393            break;
Note: See TracChangeset for help on using the changeset viewer.