Changeset 4558 in orxonox.OLD for orxonox/trunk/src/story_entities/world.cc
- Timestamp:
- Jun 8, 2005, 9:02:12 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/story_entities/world.cc
r4555 r4558 214 214 this->debugWorldNr = worldID; 215 215 this->entities = new tList<WorldEntity>(); 216 this->cycle = 0; 216 217 } 217 218 … … 498 499 Field* gravity = new Gravity(); 499 500 gravity->setMagnitude(10.0); 500 //gravity->setParent(this->localCamera->getTarget());501 gravity->setParent(this->localCamera->getTarget()); 501 502 502 503 // Add the Flow from the Emitter into the System … … 958 959 while( !this->bQuitOrxonox && !this->bQuitCurrentGame) /* \todo implement pause */ 959 960 { 961 ++this->cycle; 960 962 PRINTF(3)("World::mainloop() - number of entities: %i\n", this->entities->getSize()); 961 963 // Network … … 1058 1060 this->trackManager->tick(this->dt); 1059 1061 this->localCamera->tick(this->dt); 1062 // tick the engines 1060 1063 AnimationPlayer::getInstance()->tick(this->dtS); 1061 PhysicsEngine::getInstance()->tick(this->dtS);1062 1063 1064 particleEngine->tick(this->dtS);1065 this->garbageCollector->tick(this->dtS);1066 1067 /* actualy the Graphics Engine should tick the world not the other way around...1064 if (this->cycle > 5) 1065 PhysicsEngine::getInstance()->tick(this->dtS); 1066 1067 ParticleEngine::getInstance()->tick(this->dtS); 1068 GarbageCollector::getInstance()->tick(this->dtS); 1069 1070 /** actualy the Graphics Engine should tick the world not the other way around... 1068 1071 but since we like the things not too complicated we got it this way around 1069 1072 until there is need or time to do it the other way around.
Note: See TracChangeset
for help on using the changeset viewer.