Changeset 3342 in orxonox.OLD for orxonox/branches/parenting/src/camera.cc
- Timestamp:
- Jan 5, 2005, 3:18:28 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/parenting/src/camera.cc
r3323 r3342 42 42 this->t = 0.0; 43 43 44 this->actualPlace.r.x = 0.0;45 this->actualPlace.r.y = 10.0;46 this->actualPlace.r.z = -5.0;47 44 48 45 this->setDrawable (false); … … 69 66 //printf("time is: t=%f\n", t ); 70 67 updateDesiredPlace(); 71 jump(NULL);68 //jump(NULL); 72 69 } 73 70 … … 171 168 /* the camera is handled like an entity and rolls on the track */ 172 169 case NORMAL: 173 Location lookat;174 170 if( bound != NULL && world != NULL ) 175 171 { 176 //bound->getLookat (&lookat);177 //bound->getAbsCoor ()178 //world->calcCameraPos (&lookat, &desiredPlace);179 172 //FIXME: camera should be made via relative coordinates 180 173 Vector* cameraOffset = new Vector (-10, 5, 0); … … 254 247 } 255 248 256 /** 257 \brief set the camera position 258 \param plc: The Placement to set the camera to 259 260 This will set the actual and desired placement of the camera to plc 261 */ 262 void Camera::jump (Placement* plc = NULL) 263 { 264 if( plc == NULL) 265 { 266 actualPlace = desiredPlace; 267 //printf("Camera|jump: camer@ %f, %f, %f\n\n", actual_place.r.x, actual_place.r.y, actual_place.r.z); 268 } 269 else 270 { 271 desiredPlace = *plc; 272 actualPlace = *plc; 273 } 274 } 249 275 250 276 251 /**
Note: See TracChangeset
for help on using the changeset viewer.