Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5419 in orxonox.OLD for trunk/src/world_entities/world_entity.cc


Ignore:
Timestamp:
Oct 22, 2005, 10:55:51 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: MUCH better algorithm for the QuaternionSlerp in PNodes rotate-to function
also updated the Quaternion class, to now hold dot-product and distance

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/world_entity.cc

    r5378 r5419  
    9898bool WorldEntity::buildObbTree(unsigned int depth)
    9999{
    100   if (this->obbTree)
    101     delete this->obbTree;
    102 
    103   if (this->model)
    104   {
    105     PRINTF(4)("creating obb tree\n");
    106     this->obbTree = new OBBTree(depth, (sVec3D*)this->model->getVertexArray(), this->model->getVertexCount());
    107     return true;
    108   }
    109   else
    110   {
    111     PRINTF(2)("could not create obb-tree, because no model was loaded yet\n");
    112     this->obbTree = NULL;
    113     return false;
    114   }
     100//   if (this->obbTree)
     101//     delete this->obbTree;
     102//
     103//   if (this->model)
     104//   {
     105//     PRINTF(4)("creating obb tree\n");
     106//     this->obbTree = new OBBTree(depth, (sVec3D*)this->model->getVertexArray(), this->model->getVertexCount());
     107//     return true;
     108//   }
     109//   else
     110//   {
     111//     PRINTF(2)("could not create obb-tree, because no model was loaded yet\n");
     112//     this->obbTree = NULL;
     113//     return false;
     114//  }
    115115}
    116116
Note: See TracChangeset for help on using the changeset viewer.