Changeset 4396 in orxonox.OLD for orxonox/trunk/src/story_entities
- Timestamp:
- May 30, 2005, 3:27:36 PM (20 years ago)
- Location:
- orxonox/trunk/src/story_entities
- Files:
-
- 2 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); -
orxonox/trunk/src/story_entities/world.h
r4338 r4396 16 16 class TrackManager; 17 17 class Camera; 18 class Player; 18 19 class PNode; 19 20 class GLMenuImageScreen; … … 123 124 GLuint objectList; //!< temporary: \todo this will be ereased soon 124 125 tList<WorldEntity>* entities; //!< A template List of all entities. Every moving thing should be included here, and world automatically updates them. 125 WorldEntity* localPlayer;//!< The Player, you fly through the level.126 Player* localPlayer; //!< The Player, you fly through the level. 126 127 PilotNode* pilotNode; //!< THe pilot node to fly with the mouse 127 128
Note: See TracChangeset
for help on using the changeset viewer.