Changeset 10302 in orxonox.OLD for branches/mount_points/src
- Timestamp:
- Jan 23, 2007, 5:25:42 PM (18 years ago)
- Location:
- branches/mount_points/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/mount_points/src/lib/graphics/importer/static_model.cc
r10216 r10302 165 165 166 166 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 179 168 180 169 // now get the center of the object -
branches/mount_points/src/world_entities/mount_point.cc
r10248 r10302 93 93 std::string name = element->Value(); 94 94 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()); 96 96 // check if we got the right mount point 97 97 if( this->_name.find(name, 0) != std::string::npos)
Note: See TracChangeset
for help on using the changeset viewer.