Changeset 10391 in orxonox.OLD for trunk/src/world_entities/camera.cc
- Timestamp:
- Jan 26, 2007, 7:12:37 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/camera.cc
r10389 r10391 41 41 { 42 42 this->registerObject(this, Camera::_objectList); 43 43 44 this->init(); 44 45 } 45 46 46 /* 47 47 48 Camera::Camera(const TiXmlElement* root) 48 49 { 49 50 this->registerObject(this, Camera::_objectList); 51 52 if( root != NULL) 53 this->loadParams(root); 54 50 55 this->init(); 51 this->loadParams(root); 52 } 53 */ 56 57 } 58 54 59 55 60 /** … … 87 92 this->viewLeftDistance = 10; 88 93 89 //this->loadParams(doc.RootElement());90 91 94 this->setViewMode(Camera::ViewNormal); 92 95 93 96 this->setParentMode(PNODE_ALL); 94 97 this->eventHandling = true; 95 98 96 99 //add to track 97 100 if(this->entityTrack) … … 213 216 if (fabsf(tmpFovy) > 0.01) 214 217 this->fovy += tmpFovy * fabsf(dt); 215 218 216 219 if(this->entityTrack) 217 220 this->entityTrack->tick(dt); … … 302 305 { 303 306 // Do the PNode loading stuff 304 PNode::loadParams(root);307 WorldEntity::loadParams(root); 305 308 306 309 LoadParam(root, "viewTopFovy", this, Camera, setViewTopFovy);
Note: See TracChangeset
for help on using the changeset viewer.