Changeset 6780 in orxonox.OLD for trunk/src/world_entities/camera.cc
- Timestamp:
- Jan 26, 2006, 6:47:32 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/camera.cc
r6778 r6780 202 202 if( currentMode != VIEW_FRONT) delay = (this->target->getVelocity()) / 25.0f; 203 203 204 // Setting the Camera Eye, lookAt and up Vectors 204 205 glMatrixMode (GL_MODELVIEW); 206 glLoadIdentity(); 207 208 // Setting the Camera Eye, lookAt and up Vectors 205 209 gluLookAt(cameraPosition.x - delay.x, cameraPosition.y - delay.y, cameraPosition.z - delay.z, 206 210 targetPosition.x, targetPosition.y, targetPosition.z, 207 211 up.x, up.y, up.z); 208 209 210 glMatrixMode (GL_MODELVIEW);211 glLoadIdentity();212 213 214 215 212 } 216 213
Note: See TracChangeset
for help on using the changeset viewer.