Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5033 in orxonox.OLD for orxonox/trunk/src/lib/collision_detection


Ignore:
Timestamp:
Aug 15, 2005, 9:59:57 PM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: obb trees are now created for every object in the world. this will use some extra seconds in the startup and will also take some ms in the collision detection algorithm test. took 30fps here… will try to optimize it…

File:
1 edited

Legend:

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

    r5027 r5033  
    105105void CDEngine::checkCollisionGround()
    106106{
    107   Quadtree* q = this->terrain->ssp->getQuadtree();
     107  if( likely( this->terrain != NULL))
     108  {
     109    Quadtree* q = this->terrain->ssp->getQuadtree();
    108110
    109   QuadtreeNode* n = q->getQuadtreeFromPosition(this->player->getAbsCoor());
    110 
     111    QuadtreeNode* n = q->getQuadtreeFromPosition(this->player->getAbsCoor());
     112  }
    111113  //sTriangleExt* tri = q->getTriangleFromPosition(this->player->getAbsCoor());
    112114}
Note: See TracChangeset for help on using the changeset viewer.