Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3342 in orxonox.OLD for orxonox/branches/parenting/src/camera.cc


Ignore:
Timestamp:
Jan 5, 2005, 3:18:28 PM (19 years ago)
Author:
patrick
Message:

orxonox/branches/parenting: removed old coordinates.h system now using parenting for the game

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/parenting/src/camera.cc

    r3323 r3342  
    4242  this->t = 0.0;
    4343
    44   this->actualPlace.r.x = 0.0;
    45   this->actualPlace.r.y = 10.0;
    46   this->actualPlace.r.z = -5.0;
    4744
    4845  this->setDrawable (false);
     
    6966  //printf("time is: t=%f\n", t );
    7067  updateDesiredPlace();
    71   jump(NULL);
     68  //jump(NULL);
    7269}
    7370
     
    171168      /* the camera is handled like an entity and rolls on the track */
    172169    case NORMAL:
    173       Location lookat; 
    174170      if( bound != NULL && world != NULL )
    175171        {
    176           //bound->getLookat (&lookat);
    177           //bound->getAbsCoor ()
    178           //world->calcCameraPos (&lookat, &desiredPlace);
    179172          //FIXME: camera should be made via relative coordinates
    180173          Vector* cameraOffset = new Vector (-10, 5, 0);
     
    254247}
    255248
    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
    275250
    276251/**
Note: See TracChangeset for help on using the changeset viewer.