Changeset 4338 in orxonox.OLD for orxonox/trunk/src/story_entities
- Timestamp:
- May 27, 2005, 9:16:53 PM (20 years ago)
- Location:
- orxonox/trunk/src/story_entities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/story_entities/world.cc
r4326 r4338 45 45 #include "particle_engine.h" 46 46 #include "graphics_engine.h" 47 #include "physics_engine.h" 47 48 48 49 #include "command_node.h" … … 279 280 280 281 AnimationPlayer::getInstance(); // initializes the animationPlayer 282 PhysicsEngine::getInstance(); 281 283 282 284 this->localCamera = new Camera(); … … 453 455 454 456 455 456 ParticleSystem* system = new ParticleSystem(1000, PARTICLE_SPRITE);457 system->setLifeSpan(.5);458 system->setConserve(.99);459 system->setRadius(2, 0, 2, 0);460 461 ParticleEmitter* emitter = new ParticleEmitter(Vector(-1, 0, 0), M_PI_4, 100, .05);462 emitter->setParent(this->localPlayer);463 464 particleEngine->addConnection(emitter, system);465 457 /* 458 ParticleSystem* system = new ParticleSystem(1000, PARTICLE_SPRITE); 459 system->setLifeSpan(.5); 460 system->setConserve(.99); 461 system->setRadius(2, 0, 2, 0); 462 463 ParticleEmitter* emitter = new ParticleEmitter(Vector(-1, 0, 0), M_PI_4, 100, .05); 464 emitter->setParent(this->localPlayer); 465 466 particleEngine->addConnection(emitter, system); 467 */ 466 468 WorldEntity* testEntity = new TestEntity(); 467 469 //testEntity->setRelCoor(Vector(570, 10, -15)); -
orxonox/trunk/src/story_entities/world.h
r4326 r4338 37 37 static WorldInterface* getInstance(); 38 38 void init(World* world); 39 inline World* getCurrentWorld(void) {return this->worldReference;} 39 40 tList<WorldEntity>* getEntityList(); 40 41 … … 93 94 void setPath( const char* name); 94 95 96 inline Camera* getLocalCamera(void) {return this->localCamera;} 97 95 98 private: 96 99 void constuctorInit(char* name, int worldID);
Note: See TracChangeset
for help on using the changeset viewer.