Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 20, 2007, 9:27:04 PM (17 years ago)
Author:
bknecht
Message:

track now works a bit can be partly used now

File:
1 edited

Legend:

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

    r10291 r10297  
    843843        this->travelNode->updateNode(0.01f);
    844844        this->isTravelDistanceInit = false;
     845       
     846        if(this->entityTrack)
     847           this->travelNode->setParent(this->entityTrack->getTrackNode());
    845848
    846849        this->setParent(this->travelNode);
     
    10271030
    10281031    //this moves camera and ship along the travel path.
    1029     this->travelNode->shiftCoor(Vector(this->cameraSpeed * dt, 0, 0));
     1032    if(!this->entityTrack)
     1033       this->travelNode->shiftCoor(Vector(this->cameraSpeed * dt, 0, 0));
    10301034
    10311035    break;
Note: See TracChangeset for help on using the changeset viewer.