Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 2966 in orxonox.OLD for orxonox/trunk


Ignore:
Timestamp:
Nov 23, 2004, 10:59:05 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk/importer: now the Cube rotates corectly up and down

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/importer/framework.cc

    r2963 r2966  
    120120            //      printf ("tmpV: %f, %f, %f\n", tmpV.x, tmpV.y, tmpV.z);
    121121            p2 = tmpV-M;
     122            p2.y = -p2.y;
    122123            rotAxis = p1.cross(p2);
    123124            //  printf ("rotAxis: %f, %f, %f\n", rotAxis.x, rotAxis.y, rotAxis.z);
     
    132133                rotQ = Quaternion (rotAngle, rotAxis);
    133134                rotQ = rotQ * rotQlast;
    134                 rotQ.norm();
    135135                rotQ.matrix (matQ);
    136136                //      dir = rotQ.apply(dir);
    137137                //      dir.normalize();
    138                 //              printf ("rotAxis: %f, %f, %f, %f\n", dir.x, dir.y, dir.z, rotAngle);
     138                //      printf ("rotAxis: %f, %f, %f, %f\n", dir.x, dir.y, dir.z, rotAngle);
    139139              }
    140140            rotQlast = rotQ;
     
    163163            Vector tmpV (mX, mY, sqrt ( (float) abs(wH * wH/4 - (wW/2-mX) * (wW/2-mX) - (wH/2-mY) * (wH/2-mY)) ));
    164164            p1 = tmpV-M;
     165            p1.y = -p1.y;
    165166
    166167          }
Note: See TracChangeset for help on using the changeset viewer.