Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 17, 2007, 9:11:34 PM (18 years ago)
Author:
bknecht
Message:

some modification for the track

File:
1 edited

Legend:

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

    r10282 r10284  
    823823        this->travelNode->setAbsCoor(this->getAbsCoor());
    824824        this->travelNode->updateNode(0.01f);
    825 
     825       
    826826        this->setParent(this->travelNode);
     827       
     828        // If track exists put travelNode on trackNode of track
     829        if (this->entityTrack)
     830           this->travelNode->setParent(this->entityTrack->getTrackNode());
     831           
     832       
     833       
    827834        this->setRelCoor(0,0,0);
    828835
    829836        State::getCameraNode()->setParentSoft(this->travelNode);
    830         //State::getCameraNode()->setParentSoft(this);
     837        //State::getCameraNode()->setParentSoft(this->entityTrack->getTrackNode());
    831838        //State::getCameraNode()->setRelCoorSoft(-0.01, 40, 0);
    832839        State::getCameraTargetNode()->setParentSoft(this->travelNode);
    833         //State::getCameraTargetNode()->setParentSoft(this);
     840        //State::getCameraTargetNode()->setParentSoft(this->entityTrack->getTrackNode());
    834841        //State::getCameraTargetNode()->setRelCoorSoft(0,0,0);
    835842        this->setCameraMode(Camera::ViewTop);
     
    10041011
    10051012    //this moves camera and ship along the travel path.
    1006     this->travelNode->shiftCoor(Vector(this->cameraSpeed * dt, 0, 0));
     1013    if (!this->entityTrack)
     1014       this->travelNode->shiftCoor(Vector(this->cameraSpeed * dt, 0, 0));
    10071015
    10081016    break;
Note: See TracChangeset for help on using the changeset viewer.