Changeset 4128 in orxonox.OLD for orxonox/branches/particleEngine/src/story_entities/world.cc
- Timestamp:
- May 9, 2005, 4:10:16 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/particleEngine/src/story_entities/world.cc
r4105 r4128 40 40 #include "garbage_collector.h" 41 41 #include "animation_player.h" 42 #include "particle_engine.h" 42 43 43 44 #include "command_node.h" … … 207 208 delete this->lightMan; 208 209 delete this->trackManager; 210 delete this->particleEngine; 209 211 TextEngine::getInstance()->flush(); 210 212 … … 251 253 this->garbageCollector = GarbageCollector::getInstance(); 252 254 255 this->particleEngine = ParticleEngine::getInstance(); 253 256 this->trackManager = TrackManager::getInstance(); 254 257 this->lightMan = LightManager::getInstance(); … … 489 492 this->spawn(terrain); 490 493 494 495 ParticleSystem* system = new ParticleSystem(1000); 496 system->setLifeSpan(1); 497 system->setRadius(2, 0, 2, 0); 498 ParticleEmitter* emitter = new ParticleEmitter(Vector(-1, 0, 0), 0, 500); 499 emitter->setParent(this->localPlayer); 500 501 particleEngine->addConnection(emitter, system); 491 502 } 492 503 … … 951 962 952 963 TextEngine::getInstance()->draw(); 964 particleEngine->draw(); 965 953 966 lightMan->draw(); // must be at the end of the drawing procedure, otherwise Light cannot be handled as PNodes // 954 967 } … … 1136 1149 1137 1150 AnimationPlayer::getInstance()->tick(seconds); 1151 particleEngine->tick(seconds); 1138 1152 } 1139 1153 this->lastFrame = currentFrame;
Note: See TracChangeset
for help on using the changeset viewer.