Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4715 in orxonox.OLD for orxonox/trunk/src/story_entities


Ignore:
Timestamp:
Jun 27, 2005, 12:07:16 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: vulcan spy some Splinters

File:
1 edited

Legend:

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

    r4713 r4715  
    476476
    477477
     478
     479  ////////////
     480  // STATIC //
     481  ////////////
     482
     483  Field* gravity = new Gravity();
     484  gravity->setMagnitude(30.0);
     485
    478486  // SYSTEM OF THE VULCANO
    479487  ParticleSystem* vulcanSysFog = new ParticleSystem(10000, PARTICLE_SPRITE);
    480   vulcanSysFog->setLifeSpan(3);
    481   vulcanSysFog->setRadius(0.0, 1.0, 10);
    482   vulcanSysFog->setRadius(.2, 3, 50);
    483   vulcanSysFog->setRadius(1.0, 0.0, 200);
     488  vulcanSysFog->setLifeSpan(5, 2);
     489  vulcanSysFog->setRadius(0.0, 20.0, 10);
     490  vulcanSysFog->setRadius(.2, 50, 30);
     491  vulcanSysFog->setRadius(1.0, 200, 100);
    484492  vulcanSysFog->setMass (0.0, 1.0);
    485493  vulcanSysFog->setColor(0, 1, 1, 1, .5);
    486   vulcanSysFog->setColor(.5, .6, .6, .6, .5);
     494  vulcanSysFog->setColor(.5, .6, .6, .6, .2);
    487495  vulcanSysFog->setColor(1, .0, .0, .0, 0);
    488496
    489   ParticleEmitter* vulcanEmitFog = new ParticleEmitter(Vector(0,1,0), .5, 400, 150);
     497  ParticleEmitter* vulcanEmitFog = new ParticleEmitter(Vector(0,1,0), .5, 200, 150);
     498  vulcanEmitFog->setEmissionVelocity(150, 50);
    490499  vulcanEmitFog->setType(EMITTER_CUBE);
    491500  vulcanEmitFog->setSize(40);
    492501  vulcanEmitFog->setRelCoor(2460,105, 606);
    493502  ParticleEngine::getInstance()->addConnection(vulcanEmitFog, vulcanSysFog);
     503
     504  ParticleSystem* vulcanSysStone = new ParticleSystem(1000, PARTICLE_SPRITE);
     505  vulcanSysStone->setModel("models/vulcanic_stone.obj");
     506  vulcanSysStone->setLifeSpan(6);
     507  vulcanSysStone->setRadius(0.0, 10.0, 8);
     508  vulcanSysStone->setMass (0.0, .1);
     509
     510  ParticleEmitter* vulcanEmitStone = new ParticleEmitter(Vector(0,1,0), .5, 10, 200);
     511  vulcanEmitStone->setEmissionVelocity(700, 400);
     512  vulcanEmitStone->setType(EMITTER_CUBE);
     513  vulcanEmitStone->setSize(40);
     514  vulcanEmitStone->setRelCoor(2460,105, 606);
     515
     516  ParticleEngine::getInstance()->addConnection(vulcanEmitStone, vulcanSysStone);
     517  new PhysicsConnection(vulcanSysStone, gravity);
     518
    494519
    495520  // SYSTEM TRAILING THE PLAYER
     
    516541  emitter->setRelCoor(Vector(-3,0,0));
    517542
    518   Field* gravity = new Gravity();
    519   gravity->setMagnitude(10.0);
    520   gravity->setParent(this->localCamera->getTarget());
    521543
    522544  // Add the Flow from the Emitter into the System
Note: See TracChangeset for help on using the changeset viewer.