Changeset 4396 in orxonox.OLD for orxonox/trunk/src/story_entities/world.cc
- Timestamp:
- May 30, 2005, 3:27:36 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/story_entities/world.cc
r4382 r4396 48 48 #include "graphics_engine.h" 49 49 #include "physics_engine.h" 50 #include "fields.h" 50 51 51 52 #include "command_node.h" … … 181 182 TextEngine::getInstance()->flush(); 182 183 delete AnimationPlayer::getInstance(); // this should be at the end of the unloading sequence. 184 delete PhysicsEngine::getInstance(); 183 185 //delete garbagecollecor 184 186 //delete animator … … 473 475 emitter->setParent(this->localPlayer); 474 476 emitter->setRelCoor(Vector(-3,0,0)); 477 478 Field* gravity = new Gravity(); 479 gravity->setMagnitude(1000); 480 // gravity->setParent(this->localCamera->getTarget()); 475 481 476 482 // Add the Flow from the Emitter into the System 477 483 particleEngine->addConnection(emitter, system); 478 484 485 new PhysicsConnection(system, gravity); 486 new PhysicsConnection(this->localPlayer, gravity); 487 479 488 480 489 WorldEntity* testEntity = new TestEntity(); … … 1002 1011 AnimationPlayer::getInstance()->tick(this->dtS); 1003 1012 1013 PhysicsEngine::getInstance()->tick(this->dtS); 1014 1015 1004 1016 particleEngine->tick(this->dtS); 1005 1017 this->garbageCollector->tick(this->dtS);
Note: See TracChangeset
for help on using the changeset viewer.