Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6770 in orxonox.OLD for branches/network/src


Ignore:
Timestamp:
Jan 26, 2006, 2:34:29 PM (19 years ago)
Author:
bensch
Message:

orxonox/branches/network: the Camera is now woring and behaving as it should

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/network/src/world_entities/camera.cc

    r6765 r6770  
    200200  if( currentMode != VIEW_FRONT) delay = (this->target->getVelocity()) / 25.0f;
    201201
    202   glMatrixMode (GL_MODELVIEW);
    203   glLoadIdentity();
    204 
    205 
    206202  // Setting the Camera Eye, lookAt and up Vectors
    207203  gluLookAt(cameraPosition.x - delay.x, cameraPosition.y - delay.y, cameraPosition.z - delay.z,
    208204            targetPosition.x, targetPosition.y, targetPosition.z,
    209205            up.x, up.y, up.z);
     206
     207  glMatrixMode (GL_MODELVIEW);
     208  glLoadIdentity();
    210209}
    211210
Note: See TracChangeset for help on using the changeset viewer.