Changeset 4715 in orxonox.OLD for orxonox/trunk/src/story_entities
- Timestamp:
- Jun 27, 2005, 12:07:16 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/story_entities/world.cc
r4713 r4715 476 476 477 477 478 479 //////////// 480 // STATIC // 481 //////////// 482 483 Field* gravity = new Gravity(); 484 gravity->setMagnitude(30.0); 485 478 486 // SYSTEM OF THE VULCANO 479 487 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); 484 492 vulcanSysFog->setMass (0.0, 1.0); 485 493 vulcanSysFog->setColor(0, 1, 1, 1, .5); 486 vulcanSysFog->setColor(.5, .6, .6, .6, . 5);494 vulcanSysFog->setColor(.5, .6, .6, .6, .2); 487 495 vulcanSysFog->setColor(1, .0, .0, .0, 0); 488 496 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); 490 499 vulcanEmitFog->setType(EMITTER_CUBE); 491 500 vulcanEmitFog->setSize(40); 492 501 vulcanEmitFog->setRelCoor(2460,105, 606); 493 502 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 494 519 495 520 // SYSTEM TRAILING THE PLAYER … … 516 541 emitter->setRelCoor(Vector(-3,0,0)); 517 542 518 Field* gravity = new Gravity();519 gravity->setMagnitude(10.0);520 gravity->setParent(this->localCamera->getTarget());521 543 522 544 // Add the Flow from the Emitter into the System
Note: See TracChangeset
for help on using the changeset viewer.