Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9075 in orxonox.OLD for branches


Ignore:
Timestamp:
Jul 4, 2006, 12:11:01 AM (18 years ago)
Author:
bensch
Message:

playmode switch works correctly

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/presentation/src/world_entities/space_ships/spacecraft_2d.cc

    r9074 r9075  
    220220      if (State::getCameraNode != NULL)
    221221      {
     222        Vector absCoor = this->getAbsCoor();
     223        this->setParent(PNode::getNullParent());
     224        this->setAbsCoor(absCoor);
    222225        State::getCameraNode()->setParentSoft(&this->cameraNode);
    223226        State::getCameraNode()->setRelCoorSoft(-10, 0,0);
     
    230233      if (State::getCameraNode != NULL)
    231234      {
     235        this->debugNode(1);
     236        this->travelNode->debugNode(1);
     237
    232238        this->travelNode->setAbsCoor(this->getAbsCoor());
    233239        this->travelNode->updateNode(0.01f);
    234         this->setParentSoft(this->travelNode);
     240
     241        this->setParent(this->travelNode);
     242        this->setRelCoor(0,0,0);
    235243
    236244        State::getCameraNode()->setParentSoft(this->travelNode);
    237245        State::getCameraNode()->setRelCoorSoft(-10, 50,0);
    238246        State::getCameraTargetNode()->setParentSoft(this->travelNode);
     247
     248
     249        this->debugNode(1);
     250        this->travelNode->debugNode(1);
    239251      }
    240252      break;
     
    348360    case Playable::Horizontal:
    349361      {
     362
    350363        accel.y = 0.0;
    351364        Vector accelerationDir = this->getAbsDir().apply(accel * this->acceleration);
Note: See TracChangeset for help on using the changeset viewer.