Changeset 10461 in orxonox.OLD for trunk/src/world_entities
- Timestamp:
- Jan 28, 2007, 9:36:39 PM (18 years ago)
- Location:
- trunk/src/world_entities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/camera.cc
r10460 r10461 110 110 void Camera::lookAt(PNode* target) 111 111 { 112 State::setCamera(this, dynamic_cast<CameraTarget*>(target));113 112 this->target->setParentSoft(target,0.2); 114 113 } -
trunk/src/world_entities/cameraman.cc
r10441 r10461 160 160 BaseObject* newCam = ObjectListBase::getBaseObject("Camera", camName); 161 161 if( object != NULL && newCam != NULL && object->isA(PNode::staticClassID())) 162 { 162 163 dynamic_cast<Camera*>(newCam)->lookAt(dynamic_cast<PNode*>(object)); 164 State::setCamera(); 165 } 163 166 } 164 167
Note: See TracChangeset
for help on using the changeset viewer.