Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7014 in orxonox.OLD for trunk/src/world_entities/space_ships


Ignore:
Timestamp:
Feb 3, 2006, 2:14:22 PM (18 years ago)
Author:
bensch
Message:

trunk: new algorithm for the Camera-Distance

Location:
trunk/src/world_entities/space_ships
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/space_ships/helicopter.cc

    r6997 r7014  
    203203{
    204204  dynamic_cast<Element2D*>(this->getWeaponManager()->getFixedTarget())->setVisibility( true);
    205   State::getCamera()->setParentSoft(this->getWeaponManager()->getFixedTarget());
    206   State::getCameraTarget()->setParentSoft(this->getWeaponManager()->getFixedTarget());
     205  State::getCameraNode()->setParentSoft(this->getWeaponManager()->getFixedTarget());
     206  State::getCameraTargetNode()->setParentSoft(this->getWeaponManager()->getFixedTarget());
    207207}
    208208
  • trunk/src/world_entities/space_ships/hover.cc

    r6999 r7014  
    192192  dynamic_cast<Element2D*>(this->getWeaponManager()->getFixedTarget())->setVisibility( true);
    193193
    194   State::getCamera()->setParentSoft(&this->cameraNode);
    195   State::getCamera()->setRelCoorSoft(-10, 0,0);
    196   State::getCameraTarget()->setParentSoft(&this->cameraNode);
     194  State::getCameraNode()->setParentSoft(&this->cameraNode);
     195  State::getCameraNode()->setRelCoorSoft(-10, 0,0);
     196  State::getCameraTargetNode()->setParentSoft(&this->cameraNode);
    197197}
    198198
  • trunk/src/world_entities/space_ships/turbine_hover.cc

    r7004 r7014  
    222222  dynamic_cast<Element2D*>(this->getWeaponManager()->getFixedTarget())->setVisibility( true);
    223223
    224   State::getCamera()->setParentSoft(&this->cameraNode);
    225   State::getCamera()->setRelCoorSoft(-10, 0,0);
    226   State::getCameraTarget()->setParentSoft(&this->cameraNode);
     224  State::getCameraNode()->setParentSoft(&this->cameraNode);
     225  State::getCameraNode()->setRelCoorSoft(-10, 0,0);
     226  State::getCameraTargetNode()->setParentSoft(&this->cameraNode);
    227227}
    228228
Note: See TracChangeset for help on using the changeset viewer.