Changeset 6965 in orxonox.OLD
- Timestamp:
- Feb 1, 2006, 5:42:10 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/camera.cc
r6807 r6965 177 177 if( currentMode != VIEW_FRONT) delay = (this->target->getVelocity()) / 25.0f; 178 178 179 180 glMatrixMode (GL_MODELVIEW); 181 glLoadIdentity(); 182 183 // Setting the Camera Eye, lookAt and up Vectors 179 // Setting the Camera Eye, lookAt and up Vectors 184 180 gluLookAt(cameraPosition.x - delay.x, cameraPosition.y - delay.y, cameraPosition.z - delay.z, 185 181 targetPosition.x, targetPosition.y, targetPosition.z, 186 182 up.x, up.y, up.z); 183 184 185 glMatrixMode (GL_MODELVIEW); 186 glLoadIdentity(); 187 187 188 } 188 189
Note: See TracChangeset
for help on using the changeset viewer.