Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4904 in orxonox.OLD


Ignore:
Timestamp:
Jul 19, 2005, 11:05:36 PM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: prepeared the CDEngine check for collision s with the ground. Flush work

Location:
orxonox/trunk/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/collision_detection/cd_engine.cc

    r4836 r4904  
    6161void CDEngine::checkCollisions()
    6262{
     63  this->checkCollisionObjects();
     64  this->checkCollisionGround();
     65}
     66
     67
     68
     69void CDEngine::checkCollisionObjects()
     70{
    6371  tIterator<WorldEntity>* iterator1 = entityList->getIterator();
    6472  tIterator<WorldEntity>* iterator2 = entityList->getIterator();
     
    8492
    8593
    86 
    87 void CDEngine::checkCollisionObjects()
    88 {}
     94void CDEngine::checkCollisionGround()
     95{
    8996
    9097
    91 void CDEngine::checkCollisionGround()
    92 {}
     98}
    9399
    94100
  • orxonox/trunk/src/lib/graphics/spatial_separation/quadtree.h

    r4902 r4904  
    1515class QuadtreeNode;
    1616class Material;
     17class Vector;
    1718
    1819//! A class for quadtree separation of the world
     
    2324  virtual ~Quadtree();
    2425
     26  QuadtreeNode* getQuadtreeFromPosition(const Vector& position);
     27
    2528  void drawTree(int depth, int drawMode) const;
    26 
    2729  inline Material* getMaterial(int indexNode) const { return this->materials[indexNode % 4]; }
    2830
  • orxonox/trunk/src/lib/graphics/spatial_separation/quadtree_node.h

    r4902 r4904  
    2626    QuadtreeNode(modelInfo* pModelInfo, Quadtree* quadtree, const int maxDepth);
    2727    virtual ~QuadtreeNode();
     28
     29    float getHeight(const Vector& position);
    2830
    2931    void drawTree(int depth, int drawMode) const;
  • orxonox/trunk/src/world_entities/terrain.cc

    r4889 r4904  
    121121    this->model->draw();
    122122  glPopMatrix();
     123
     124  this->ssp->drawQuadtree();
    123125}
    124126
Note: See TracChangeset for help on using the changeset viewer.