Changeset 4128 in orxonox.OLD for orxonox/branches/particleEngine/src/story_entities
- Timestamp:
- May 9, 2005, 4:10:16 PM (20 years ago)
- Location:
- orxonox/branches/particleEngine/src/story_entities
- Files:
-
- 2 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; -
orxonox/branches/particleEngine/src/story_entities/world.h
r4015 r4128 20 20 class GLMenuImageScreen; 21 21 class LightManager; 22 class ParticleEngine; 22 23 class Terrain; 23 24 class GarbageCollector; … … 107 108 PNode* nullParent; //!< The zero-point, that everything has as its parent. 108 109 TrackManager* trackManager; //!< The reference of the TrackManager that handles the course through the Level. 110 ParticleEngine* particleEngine; //!< The ParticleEngine of the World. 109 111 Camera* localCamera; //!< The current Camera 110 112 WorldEntity* sky; //!< The Environmental Heaven of orxonox \todo insert this to environment insted
Note: See TracChangeset
for help on using the changeset viewer.