Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

orxonox/branches/particleEngine: inherit speed from emitter is now also an option
for this i had to write a new PNode function, getVelocity (patrick: you could also use this one in the shoot-class, maybe).

File:
1 edited

Legend:

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

    r3937 r3938  
    379379            ParticleEmitter* testEmitter,* testEmitter2;
    380380            ParticleSystem* testSystem;
    381             testEmitter = new ParticleEmitter(Vector(-1,0,0), .1, 1200.0, .5);
     381            testEmitter = new ParticleEmitter(Vector(-1,0,0), M_PI_2, 1200.0, 1);
    382382            testEmitter->setParent(localPlayer);
    383             testEmitter->setSpread(M_PI_4, .1);
    384             testEmitter2 = new ParticleEmitter(Vector(-1,0,0), .1, 1200, .5);
     383            testEmitter2 = new ParticleEmitter(Vector(-1,0,0), .1, 1200, 1);
    385384            testEmitter2->setParent(tn);
    386385
     
    388387            testSystem->setLifeSpan(3);
    389388            testSystem->setConserve(.8);
     389            testSystem->setInheritSpeed(1);
    390390
    391391            ParticleEngine::getInstance()->addConnection(testEmitter, testSystem);
Note: See TracChangeset for help on using the changeset viewer.