Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Jun 28, 2005, 11:56:46 PM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: more loading (especially for physics)

File:
1 edited

Legend:

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

    r4727 r4728  
    496496  Field* gravity = new Gravity();
    497497  gravity->setMagnitude(30.0);
    498 
    499   // SYSTEM OF THE VULCANO
    500 //   ParticleSystem* vulcanSysFog = new ParticleSystem(10000, PARTICLE_SPRITE);
    501 //   vulcanSysFog->setLifeSpan(5, 2);
    502 //   vulcanSysFog->setRadius(0.0, 20.0, 10);
    503 //   vulcanSysFog->setRadius(.2, 50, 30);
    504 //   vulcanSysFog->setRadius(1.0, 200, 100);
    505 //   vulcanSysFog->setMass (0.0, 1.0);
    506 //   vulcanSysFog->setColor(0, 1, 1, 1, .5);
    507 //   vulcanSysFog->setColor(.5, .6, .6, .6, .2);
    508 //   vulcanSysFog->setColor(1, .0, .0, .0, 0);
    509 //
    510 //   ParticleEmitter* vulcanEmitFog = new ParticleEmitter(Vector(0,1,0), .5, 200, 150);
    511 //   vulcanEmitFog->setEmissionVelocity(150, 50);
    512 //   vulcanEmitFog->setType(EMITTER_CUBE);
    513 //   vulcanEmitFog->setSize(40);
    514 //   vulcanEmitFog->setRelCoor(2460,105, 606);
    515 //   ParticleEngine::getInstance()->addConnection(vulcanEmitFog, vulcanSysFog);
    516 
    517 
    518 //   ParticleSystem* vulcanSysStone = new ParticleSystem(1000, PARTICLE_MODEL);
    519 //   vulcanSysStone->setLifeSpan(6);
    520 //   vulcanSysStone->setRadius(0.0, 5.0, 3.0);
    521 //   vulcanSysStone->setMass (0.0, .1);
    522 //   vulcanSysStone->loadModel("models/vulcanic_stones.obj");
    523 //
    524 //   ParticleEmitter* vulcanEmitStone = new ParticleEmitter(Vector(0,1,0), .5, 10, 200);
    525 //   vulcanEmitStone->setEmissionVelocity(700, 400);
    526 //   vulcanEmitStone->setType(EMITTER_CUBE);
    527 //   vulcanEmitStone->setSize(40);
    528 //   vulcanEmitStone->setRelCoor(2460,105, 606);
    529 
    530 //   ParticleEngine::getInstance()->addConnection(vulcanEmitStone, vulcanSysStone);
    531 //   new PhysicsConnection(vulcanSysStone, gravity);
    532 
    533   // SYSTEM OF THE VULCANO
    534   ParticleSystem* vulcanSysSpark = new ParticleSystem(10000, PARTICLE_SPARK);
    535   vulcanSysSpark->setLifeSpan(5, 2);
    536   vulcanSysSpark->setRadius(0.0, .2, .1);
    537   vulcanSysSpark->setRadius(.2, .1, .1);
    538   vulcanSysSpark->setRadius(1.0, 0, 0);
    539   vulcanSysSpark->setMass (0.0, .1);
    540   vulcanSysSpark->setColor(0, 1.0, .0, .0, .3);
    541   vulcanSysSpark->setColor(.5, 1.0, 1.0, .0, .2);
    542   vulcanSysSpark->setColor(1, .0, .0, .0, 0);
    543 
    544   ParticleEmitter* vulcanEmitSpark = new ParticleEmitter(Vector(0,1,0), .5, 100, 150);
    545   vulcanEmitSpark->setEmissionVelocity(500, 500);
    546   vulcanEmitSpark->setType(EMITTER_CUBE);
    547   vulcanEmitSpark->setSize(40);
    548   vulcanEmitSpark->setRelCoor(2460,105, 606);
    549   ParticleEngine::getInstance()->addConnection(vulcanEmitSpark, vulcanSysSpark);
    550   new PhysicsConnection(vulcanSysSpark, gravity);
    551 
    552498
    553499
Note: See TracChangeset for help on using the changeset viewer.