Changeset 3236 in orxonox.OLD for orxonox/trunk/src/camera.cc
- Timestamp:
- Dec 20, 2004, 1:39:51 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/camera.cc
r3228 r3236 42 42 this->t = 0.0; 43 43 44 this->actual _place.r.x = 0.0;45 this->actual _place.r.y = 10.0;46 this->actual _place.r.z = -5.0;44 this->actualPlace.r.x = 0.0; 45 this->actualPlace.r.y = 10.0; 46 this->actualPlace.r.z = -5.0; 47 47 } 48 48 … … 66 66 {this->t += deltaT;} 67 67 //printf("time is: t=%f\n", t ); 68 update _desired_place();68 updateDesiredPlace(); 69 69 jump(NULL); 70 70 } … … 89 89 if( bound != NULL) 90 90 { 91 bound->get _lookat (&lookat);91 bound->getLookat (&lookat); 92 92 orx->getWorld()->calcCameraPos (&lookat, &plFocus); 93 93 Quaternion *fr; … … 169 169 if(bound != null) 170 170 { 171 Placement *plBound = bound->get _placement();171 Placement *plBound = bound->getPlacement(); 172 172 Vector vDirection(0.0, 0.0, 1.0); 173 173 Vector eclipticOffset(0.0, 0.0, 5.0); … … 237 237 // rotation 238 238 float matrix[4][4]; 239 actual _place.w.conjugate().matrix (matrix);239 actualPlace.w.conjugate().matrix (matrix); 240 240 /* orientation and */ 241 241 glMultMatrixf ((float*)matrix); 242 242 /* translation */ 243 glTranslatef (-actual _place.r.x, -actual_place.r.y,- actual_place.r.z);243 glTranslatef (-actualPlace.r.x, -actualPlace.r.y,- actualPlace.r.z); 244 244 //Placement *plBound = bound->get_placement(); 245 245
Note: See TracChangeset
for help on using the changeset viewer.