Changeset 4918 in orxonox.OLD for orxonox/trunk/src
- Timestamp:
- Jul 21, 2005, 12:37:46 PM (19 years ago)
- Location:
- orxonox/trunk/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/collision_detection/cd_engine.cc
r4907 r4918 61 61 void CDEngine::checkCollisions() 62 62 { 63 this->checkCollisionObjects();63 //this->checkCollisionObjects(); 64 64 this->checkCollisionGround(); 65 65 } -
orxonox/trunk/src/lib/collision_detection/cd_engine.h
r4836 r4918 15 15 class WorldEntity; 16 16 class OBBTree; 17 class Terrain; 17 18 18 19 … … 45 46 46 47 inline void setEntityList(tList<WorldEntity>* entityList) { this->entityList = entityList; } 48 inline void setTerrain(Terrain* terrain) { this->terrain = terrain; } 47 49 48 50 void drawBV(int depth, int drawMode) const; … … 68 70 tList<WorldEntity>* entityList; //!< pointer to the world entity list 69 71 OBBTree* rootTree; //!< for testing purposes a root tree 72 73 Terrain* terrain; //!< this it a ref to the terrain, serving as a ground for all WE 70 74 }; 71 75 -
orxonox/trunk/src/lib/graphics/spatial_separation/quadtree_node.cc
r4914 r4918 362 362 void QuadtreeNode::drawTree(int depth, int drawMode) const 363 363 { 364 printf("this = %p\n", this);365 364 if( this->treeDepth == this->maxDepth) 366 365 { -
orxonox/trunk/src/story_entities/world.cc
r4917 r4918 276 276 277 277 GraphicsEngine::getInstance()->displayFPS(true); 278 279 CDEngine::getInstance()->setEntityList( this->entities); 278 280 } 279 281 … … 377 379 if( element->Value() != NULL && !strcmp( element->Value(), "Player")) localPlayer = (Player*) created; 378 380 if( element->Value() != NULL && !strcmp( element->Value(), "SkyBox")) sky = (SkyBox*) created; 379 if( element->Value() != NULL && !strcmp( element->Value(), "Terrain")) terrain = (Terrain*) created; 381 if( element->Value() != NULL && !strcmp( element->Value(), "Terrain")) 382 { 383 terrain = (Terrain*) created; 384 CDEngine::getInstance()->setTerrain(terrain); 385 } 380 386 element = element->NextSiblingElement(); 381 387 glmis->step(); //! @todo temporary … … 949 955 void World::collide() 950 956 { 951 957 CDEngine::getInstance()->checkCollisions(); 952 958 } 953 959
Note: See TracChangeset
for help on using the changeset viewer.