Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5689 in orxonox.OLD for trunk


Ignore:
Timestamp:
Nov 21, 2005, 11:33:36 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: some cool casting in the collision-detection

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/collision_detection/obb_tree_node.cc

    r5688 r5689  
    100100 * @param depth: how much more depth-steps to go: if == 1 don't go any deeper!
    101101 * @param modInfo: model informations from the abstrac model
    102  * 
     102 *
    103103 * this function creates the Bounding Volume tree from a modelInfo struct and bases its calculations
    104104 * on the triangle informations (triangle soup not polygon soup)
     
    108108  int length = 0;
    109109  sVec3D* verticesList;
    110  
     110
    111111  PRINT(3)("\n");
    112112  this->treeIndex = this->obbTree->getID();
     
    145145//       PRINTF(3)("Aboarding tree walk: less than 3 vertices left\n");
    146146//     }
    147 // 
     147//
    148148//     if( this->tmpLen2 > 2)
    149149//     {
     
    165165 * @param depth: how much more depth-steps to go: if == 1 don't go any deeper!
    166166 * @param verticesList: the list of vertices of the object - each vertices triple is interpreted as a triangle
    167  * 
     167 *
    168168 * this function creates an Bounding Volume tree from a vertices soup (no triangle data)
    169169 */
     
    468468void OBBTreeNode::calculateBoxAxis(OBB* box, const modelInfo& modInfo)
    469469{
    470   //this->calculateBoxAxis( box, modInfo.pVertices, modInfo.numVertices);
     470  this->calculateBoxAxis(box, (const sVec3D*)modInfo.pVertices, modInfo.numVertices);
    471471}
    472472
     
    792792    if( (rA + rB) < fabs(t.dot(l)))
    793793    {
    794       PRINT(3)("keine Kollision\n");
     794      PRINT(3)("no Collision\n");
    795795      return false;
    796796    }
     
    816816    if( (rA + rB) < fabs(t.dot(l)))
    817817    {
    818       PRINT(3)("keine Kollision\n");
     818      PRINT(3)("no Collision\n");
    819819      return false;
    820820    }
Note: See TracChangeset for help on using the changeset viewer.