Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 19, 2006, 2:52:29 PM (17 years ago)
Author:
bknecht
Message:

connected the track with the worldentities and the spaceship

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/playability/src/world_entities/space_ships/space_ship.cc

    r10095 r10096  
    5555#include "util/loading/load_param.h"
    5656#include "time.h"
     57
     58#include "track/track.h"
    5759
    5860
     
    477479  else
    478480    this->secWeaponMan.releaseFire();
     481   
     482  // Tracktick
     483  if(this->entityTrack)
     484    this->entityTrack->tick(time);
    479485
    480486
     
    760766        this->travelNode->updateNode(0.01f);
    761767
    762         this->setParent(this->travelNode);
     768        //this->setParent(this->travelNode);
    763769        this->setRelCoor(0,0,0);
    764770
    765         State::getCameraNode()->setParentSoft(this->travelNode);
     771        //State::getCameraNode()->setParentSoft(this->travelNode);
     772        State::getCameraNode()->setParentSoft(this);
    766773        State::getCameraNode()->setRelCoorSoft(-0.01, 40, 0);
    767         State::getCameraTargetNode()->setParentSoft(this->travelNode);
     774        //State::getCameraTargetNode()->setParentSoft(this->travelNode);
     775        State::getCameraTargetNode()->setParentSoft(this);
    768776        State::getCameraTargetNode()->setRelCoorSoft(0,0,0);
    769777
Note: See TracChangeset for help on using the changeset viewer.