Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10461 in orxonox.OLD for trunk/src


Ignore:
Timestamp:
Jan 28, 2007, 9:36:39 PM (18 years ago)
Author:
patrick
Message:

small change in camera.

Location:
trunk/src/world_entities
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/camera.cc

    r10460 r10461  
    110110void Camera::lookAt(PNode* target)
    111111{
    112   State::setCamera(this, dynamic_cast<CameraTarget*>(target));
    113112  this->target->setParentSoft(target,0.2);
    114113}
  • trunk/src/world_entities/cameraman.cc

    r10441 r10461  
    160160  BaseObject* newCam = ObjectListBase::getBaseObject("Camera", camName);
    161161  if( object != NULL && newCam != NULL && object->isA(PNode::staticClassID()))
     162  {
    162163    dynamic_cast<Camera*>(newCam)->lookAt(dynamic_cast<PNode*>(object));
     164    State::setCamera();
     165  }
    163166}
    164167
Note: See TracChangeset for help on using the changeset viewer.