Changeset 4923 in orxonox.OLD for orxonox/trunk/src/lib/graphics/spatial_separation/spatial_separation.cc
- Timestamp:
- Jul 21, 2005, 4:27:06 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/graphics/spatial_separation/spatial_separation.cc
r4922 r4923 9 9 any later version. 10 10 11 11 ### File Specific: 12 12 main-programmer: Patrick Boenzli 13 13 co-programmer: ... … … 30 30 The boxes are overlaping because this makes collision detection a lot simpler 31 31 32 */32 */ 33 33 SpatialSeparation::SpatialSeparation (AbstractModel* model, float overlapSize) 34 34 { 35 PRINT(3)("\n");36 35 PRINT(3)("+---------Debug Information SpatialSeparation----------\n"); 37 36 PRINT(3)("+-| (Event) Spatial Separation process kicked on\n"); 38 37 39 40 41 38 this->setClassID(CL_SPATIAL_SEPARATION, "SpatialSeparation"); 39 /* debug vice */ 40 this->createQuadtree(model); 42 41 } 42 43 43 44 44 /** … … 48 48 49 49 The boxes are overlaping because this makes collision detection a lot simpler 50 51 50 */ 52 51 SpatialSeparation::SpatialSeparation (AbstractModel* model, AbstractModel* playerModel) … … 59 58 /** 60 59 * standard deconstructor 61 62 */ 60 */ 63 61 SpatialSeparation::~SpatialSeparation () 64 62 { … … 67 65 68 66 /** 69 \briefcreates a quadtree70 * @param model the model to do a quadtree on71 * @param minLength the minimal length of a quadtree node72 \return the new quadtree67 * creates a quadtree 68 * @param model the model to do a quadtree on 69 * @param minLength the minimal length of a quadtree node 70 * @return the new quadtree 73 71 */ 74 72 Quadtree* SpatialSeparation::createQuadtree(AbstractModel* model, float minLength) … … 80 78 81 79 /** 82 \brief creates a quadtree83 * @param model the model to do a quadtree on84 * @param minLength the minimal length of a quadtree node85 \return the new quadtree80 * brief creates a quadtree 81 * @param model the model to do a quadtree on 82 * @param minLength the minimal length of a quadtree node 83 * @return the new quadtree 86 84 */ 87 85 Quadtree* SpatialSeparation::createQuadtree(AbstractModel* model, int treeDepth) … … 92 90 93 91 /** 94 \briefcreates a quadtree95 * @param model the model to do a quadtree on96 * @param minLength the minimal length of a quadtree node97 \return the new quadtree98 */92 * creates a quadtree 93 * @param model the model to do a quadtree on 94 * @param minLength the minimal length of a quadtree node 95 * @return the new quadtree 96 */ 99 97 Quadtree* SpatialSeparation::createQuadtree(AbstractModel* model) 100 98 { … … 105 103 106 104 107 105 /** 106 * draws all the quadtrees 107 */ 108 108 void SpatialSeparation::drawQuadtree() 109 109 {
Note: See TracChangeset
for help on using the changeset viewer.