Changeset 10236 in orxonox.OLD for branches/camera/src/world_entities/cameraman.cc
- Timestamp:
- Jan 14, 2007, 9:35:08 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/camera/src/world_entities/cameraman.cc
r10206 r10236 26 26 currentCam=State::getCamera(); 27 27 this->cameras.push_back(currentCam); 28 currentCam->target->detach(); 28 29 29 30 } … … 34 35 Camera* newCamera=new Camera(); 35 36 this->cameras.push_back(newCamera); 36 //cameraList.size(); 37 //cameraList[4] 37 newCamera->target->detach(); 38 38 } 39 39 … … 64 64 void cameraman::changeTarget(int camNo, PNode* target) 65 65 { 66 cameras[camNo]-> target->atach(target);66 cameras[camNo]->lookAt(target); 67 67 } 68 68 69 69 70 70 void cameraman::changeCurrTarget(PNode* target) 71 { 72 currentCam->lookAt(target); 73 } 74 75 void cameraman::atachCurrTarget(PNode* target) 71 76 { 72 77 currentCam->target->atach(target);
Note: See TracChangeset
for help on using the changeset viewer.