Changeset 8328 in orxonox.OLD for branches/terrain/src/lib/collision_detection
- Timestamp:
- Jun 12, 2006, 5:17:14 PM (19 years ago)
- Location:
- branches/terrain/src/lib/collision_detection
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/terrain/src/lib/collision_detection/cd_engine.cc
r8186 r8328 22 22 #include "model.h" 23 23 #include "world_entity.h" 24 #include "terrain.h" 24 #include "terrain_entity.h" 25 25 26 // #include "player.h" 26 27 … … 99 100 if( likely( this->terrain != NULL)) 100 101 { 101 Quadtree* q = dynamic_cast<Terrain*>(this->terrain)->ssp->getQuadtree(); 102 // QuadtreeNode* n = q->getQuadtreeFromPosition(this->player->getAbsCoor()); 102 //kraus: TODO put collision detection for terrain class here... 103 //Quadtree* q = dynamic_cast<TerrainEntity*>(this->terrain)->ssp->getQuadtree(); 104 //QuadtreeNode* n = q->getQuadtreeFromPosition(this->player->getAbsCoor()); 103 105 } 104 106 -
branches/terrain/src/lib/collision_detection/cd_engine.h
r8186 r8328 16 16 class WorldEntity; 17 17 class OBBTree; 18 class Terrain ;18 class TerrainEntity; 19 19 class BspManager; 20 20 //class Player; … … 50 50 inline void disable(const int options) { int temp = this->state & options; this->state ^= temp; } 51 51 52 inline void setTerrain( Terrain* terrain) { this->terrain = terrain; }52 inline void setTerrain( TerrainEntity* terrain) { this->terrain = terrain; } 53 53 inline void setBSPModel(BspManager* bspManager) { this->bspManager = bspManager; } 54 54 … … 83 83 OBBTree* rootTree; //!< for testing purposes a root tree 84 84 85 Terrain * terrain; //!< this it a ref to the terrain, serving as a ground for all WE85 TerrainEntity* terrain; //!< this it a ref to the terrain, serving as a ground for all WE 86 86 BspManager* bspManager; 87 87 };
Note: See TracChangeset
for help on using the changeset viewer.