Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 14, 2007, 9:35:08 PM (18 years ago)
Author:
gfilip
Message:

another update :)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/camera/src/world_entities/cameraman.cc

    r10206 r10236  
    2626  currentCam=State::getCamera();
    2727  this->cameras.push_back(currentCam);
     28  currentCam->target->detach();
    2829
    2930}
     
    3435  Camera* newCamera=new Camera();
    3536  this->cameras.push_back(newCamera);
    36   //cameraList.size();
    37   //cameraList[4]
     37  newCamera->target->detach();
    3838}
    3939
     
    6464void cameraman::changeTarget(int camNo, PNode* target)
    6565{
    66   cameras[camNo]->target->atach(target);
     66  cameras[camNo]->lookAt(target);
    6767}
    6868
    6969
    7070void cameraman::changeCurrTarget(PNode* target)
     71{
     72  currentCam->lookAt(target);
     73}
     74
     75void cameraman::atachCurrTarget(PNode* target)
    7176{
    7277  currentCam->target->atach(target);
Note: See TracChangeset for help on using the changeset viewer.