Changeset 2966 in orxonox.OLD
- Timestamp:
- Nov 23, 2004, 10:59:05 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/importer/framework.cc
r2963 r2966 120 120 // printf ("tmpV: %f, %f, %f\n", tmpV.x, tmpV.y, tmpV.z); 121 121 p2 = tmpV-M; 122 p2.y = -p2.y; 122 123 rotAxis = p1.cross(p2); 123 124 // printf ("rotAxis: %f, %f, %f\n", rotAxis.x, rotAxis.y, rotAxis.z); … … 132 133 rotQ = Quaternion (rotAngle, rotAxis); 133 134 rotQ = rotQ * rotQlast; 134 rotQ.norm();135 135 rotQ.matrix (matQ); 136 136 // dir = rotQ.apply(dir); 137 137 // dir.normalize(); 138 // 138 // printf ("rotAxis: %f, %f, %f, %f\n", dir.x, dir.y, dir.z, rotAngle); 139 139 } 140 140 rotQlast = rotQ; … … 163 163 Vector tmpV (mX, mY, sqrt ( (float) abs(wH * wH/4 - (wW/2-mX) * (wW/2-mX) - (wH/2-mY) * (wH/2-mY)) )); 164 164 p1 = tmpV-M; 165 p1.y = -p1.y; 165 166 166 167 }
Note: See TracChangeset
for help on using the changeset viewer.