Changeset 3013 in orxonox.OLD for orxonox/branches/bezierTrack/src/player.cc
- Timestamp:
- Nov 27, 2004, 12:45:12 PM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/bezierTrack/src/player.cc
r2969 r3013 103 103 float matrix[4][4]; 104 104 105 glTranslatef(get_placement()-> r.x,get_placement()->r.y,get_placement()->r.z);106 get_placement()-> w.matrix (matrix);105 glTranslatef(get_placement()->pos.x,get_placement()->pos.y,get_placement()->pos.z); 106 get_placement()->rot.matrix (matrix); 107 107 glMultMatrixf ((float*)matrix); 108 108 109 109 glMatrixMode (GL_MODELVIEW); 110 glRotatef (-90, 0, 1,0);110 glRotatef (-90, 0, 1, 0); 111 111 obj->draw(); 112 112 // glCallList (objectList); … … 134 134 /* calculate the direction in which the craft is heading */ 135 135 Vector direction(0.0, 0.0, 1.0); 136 direction = pos-> w.apply(direction);136 direction = pos->rot.apply(direction); 137 137 Vector orthDirection(0.0, 0.0, 1.0); 138 138 orthDirection = orthDirection.cross(direction);
Note: See TracChangeset
for help on using the changeset viewer.