Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3013 in orxonox.OLD for orxonox/branches/bezierTrack/src/player.cc


Ignore:
Timestamp:
Nov 27, 2004, 12:45:12 PM (21 years ago)
Author:
bensch
Message:

orxonox/branches/bezierTrack: Location→r ,→w to →pos →dir. (otherwise noone gets the sense of them again.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/bezierTrack/src/player.cc

    r2969 r3013  
    103103  float matrix[4][4];
    104104 
    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);
    107107  glMultMatrixf ((float*)matrix);
    108108 
    109109  glMatrixMode (GL_MODELVIEW);
    110   glRotatef (-90, 0,1,0);
     110  glRotatef (-90, 0, 1, 0);
    111111  obj->draw();
    112112  //  glCallList (objectList);
     
    134134  /* calculate the direction in which the craft is heading  */
    135135  Vector direction(0.0, 0.0, 1.0);
    136   direction = pos->w.apply(direction);
     136  direction = pos->rot.apply(direction);
    137137  Vector orthDirection(0.0, 0.0, 1.0);
    138138  orthDirection = orthDirection.cross(direction);
Note: See TracChangeset for help on using the changeset viewer.