Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10311 in orxonox.OLD


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

finally the mounting point algorithm is working, like hell

File:
1 edited

Legend:

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

    r10310 r10311  
    190190        xAxis = axis2;
    191191
    192       xAxis.debug();
    193 
    194 
     192
     193      // find the 2nd longest axis to be y-axis
    195194      if( xAxis.len() > axis1.len() && yAxis.len() < axis1.len())
    196195        yAxis = axis1;
     
    198197        yAxis = axis2;
    199198
    200       yAxis.debug();
    201199
    202200      // needed... no explanation here..
     
    204202        zAxis = yAxis;
    205203
     204      // find the shortest axis to be z-axis
    206205      if( yAxis.len() > axis1.len() )
    207206        zAxis = axis1;
    208207      if( yAxis.len() > axis2.len() )
    209208        zAxis = axis2;
    210 
    211       zAxis.debug();
    212 
    213209    }
    214210
    215211    // now add the mount point
    216 //     this->addMountPoint( up, forward, center, groupName);
     212     this->addMountPoint( zAxis, yAxis, center, groupName);
    217213  }
    218214}
Note: See TracChangeset for help on using the changeset viewer.