Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4763 in orxonox.OLD


Ignore:
Timestamp:
Jul 2, 2005, 1:45:39 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: EngineParticles are now Loaded

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/story_entities/world.cc

    r4747 r4763  
    503503  // SYSTEM TRAILING THE PLAYER
    504504  // Creating a Test Particle System
    505   ParticleSystem* system = new ParticleSystem(5000, PARTICLE_SPRITE);
    506   system->setLifeSpan(.5);
    507   system->setConserve(.8);
    508   system->setRadius(0.0, 1.0, .8);
    509   system->setRadius(.2, 3, 2.0);
    510   system->setRadius(1.0, 0.0, .0);
    511   system->setMass (0.0, 1.0);
    512   //system->setModel(ResourceManager::getFullName("models/orx-rocket.obj"));
    513 
    514   system->setColor(0, .5, 0, 0, 1);
    515   system->setColor(.5, 1, 1, 0, .01);
    516   system->setColor(1.0, 0, 0, 0, 0);
    517 
    518 
    519   // Creating a Test Particle Emitter
    520   ParticleEmitter* emitter = new ParticleEmitter(Vector(-1, 0, 0), M_PI_4, 400, .5);
    521   emitter->setType(EMITTER_DOT);
    522   emitter->setSize(20);
    523   emitter->setParent(this->localPlayer);
    524   emitter->setRelCoor(Vector(-3,0,0));
    525 
    526 
    527   // Add the Flow from the Emitter into the System
    528   particleEngine->addConnection(emitter, system);
    529505
    530506  //new PhysicsConnection(system, gravity);
Note: See TracChangeset for help on using the changeset viewer.