Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 25, 2006, 3:17:20 PM (19 years ago)
Author:
bensch
Message:

orxonox/branches/cd: merged the new collision-detection back.
merged and collissions resolved.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/cd/src/world_entities/world_entity.cc

    r7230 r7365  
    207207 * @param depth the depth to calculate
    208208 */
    209 bool WorldEntity::buildObbTree(unsigned int depth)
     209bool WorldEntity::buildObbTree(int depth)
    210210{
    211211  if (this->obbTree)
     
    214214  if (this->models[0] != NULL)
    215215  {
    216     PRINTF(4)("creating obb tree\n");
    217 
    218 
    219     this->obbTree = new OBBTree(depth, (sVec3D*)this->models[0]->getVertexArray(), this->models[0]->getVertexCount());
     216    this->obbTree = new OBBTree(depth, models[0]->getModelInfo(), this);
    220217    return true;
    221218  }
    222219  else
    223220  {
    224     PRINTF(2)("could not create obb-tree, because no model was loaded yet\n");
     221    PRINTF(1)("could not create obb-tree, because no model was loaded yet\n");
    225222    this->obbTree = NULL;
    226223    return false;
     
    468465 * @param drawMode the mode to draw this entity under
    469466 */
    470 void WorldEntity::drawBVTree(unsigned int depth, int drawMode) const
     467void WorldEntity::drawBVTree(int depth, int drawMode) const
    471468{
    472469  glMatrixMode(GL_MODELVIEW);
     
    480477  glRotatef (this->getAbsDir().getSpacialAxisAngle(), tmpRot.x, tmpRot.y, tmpRot.z );
    481478
     479
    482480  if (this->obbTree)
    483481    this->obbTree->drawBV(depth, drawMode);
     482
     483
    484484  glPopMatrix();
    485485}
Note: See TracChangeset for help on using the changeset viewer.