Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10309 in orxonox.OLD


Ignore:
Timestamp:
Jan 23, 2007, 11:13:37 PM (18 years ago)
Author:
patrick
Message:

better strategy for center seeking alg

File:
1 edited

Legend:

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

    r10308 r10309  
    158158      Vector* center = NULL;
    159159      // now find the center point (the one with the 90degree angle)
    160       if( ab.dot( ac) < 0.01)
     160      if( fabs(ab.dot( ac)) < 0.01)
    161161        center = &a;
    162       else if( ab.dot(bc) < 0.01)
     162      else if( fabs(ab.dot(bc)) < 0.01)
    163163        center = &b;
    164       else if( bc.dot(ac) < 0.01)
     164      else if( fabs(bc.dot(ac)) < 0.01)
    165165        center = &c;
    166166
    167       if( center != NULL)
    168         PRINTF(0)("found a center\n");
     167      center->debug();
     168
    169169    }
    170170
Note: See TracChangeset for help on using the changeset viewer.