Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10302 in orxonox.OLD for branches


Ignore:
Timestamp:
Jan 23, 2007, 5:25:42 PM (18 years ago)
Author:
patrick
Message:

even more performance saved now, since the obb tree doesn't get build every time

Location:
branches
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • branches/mount_points/src/lib/graphics/importer/static_model.cc

    r10216 r10302  
    165165
    166166
    167     // now get the longest side of the first face, this will be the forward vector
    168     Vector forward;
    169     Vector side1 = vertices[0] - vertices[1];
    170     Vector side2 = vertices[1] - vertices[2];
    171     Vector side3 = vertices[2] - vertices[3];
    172 
    173     if( fabs(side1.len()) > fabs(side2.len()) && fabs(side1.len()) > fabs(side3.len()))
    174       forward = side1;
    175     else if( fabs(side2.len()) > fabs(side1.len()) && fabs(side2.len()) > fabs(side3.len()))
    176       forward = side2;
    177     else if( fabs(side3.len()) > fabs(side1.len()) && fabs(side3.len()) > fabs(side2.len()))
    178       forward = side3;
     167
    179168
    180169    // now get the center of the object
  • branches/mount_points/src/world_entities/mount_point.cc

    r10248 r10302  
    9393      std::string name = element->Value();
    9494
    95       PRINTF(5)("checking %s against local %s\n", name.c_str(), this->_name.c_str());
     95      PRINTF(0)("checking %s against local %s\n", name.c_str(), this->_name.c_str());
    9696      // check if we got the right mount point
    9797      if( this->_name.find(name, 0) != std::string::npos)
Note: See TracChangeset for help on using the changeset viewer.