Changeset 10289 in orxonox.OLD for branches/playability/src/world_entities/space_ships
- Timestamp:
- Jan 17, 2007, 10:39:50 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/playability/src/world_entities/space_ships/space_ship.cc
r10286 r10289 823 823 this->travelNode->setAbsCoor(this->getAbsCoor()); 824 824 this->travelNode->updateNode(0.01f); 825 825 826 826 this->setParent(this->travelNode); 827 828 // If track exists put travelNode on trackNode of track829 if (this->entityTrack)830 this->travelNode->setParent(this->entityTrack->getTrackNode());831 832 833 834 827 this->setRelCoor(0,0,0); 835 828 836 829 State::getCameraNode()->setParentSoft(this->travelNode); 837 //State::getCameraNode()->setParentSoft(this ->entityTrack->getTrackNode());830 //State::getCameraNode()->setParentSoft(this); 838 831 //State::getCameraNode()->setRelCoorSoft(-0.01, 40, 0); 839 832 State::getCameraTargetNode()->setParentSoft(this->travelNode); 840 //State::getCameraTargetNode()->setParentSoft(this ->entityTrack->getTrackNode());833 //State::getCameraTargetNode()->setParentSoft(this); 841 834 //State::getCameraTargetNode()->setRelCoorSoft(0,0,0); 842 835 this->setCameraMode(Camera::ViewTop); … … 1011 1004 1012 1005 //this moves camera and ship along the travel path. 1013 if (!this->entityTrack) 1014 this->travelNode->shiftCoor(Vector(this->cameraSpeed * dt, 0, 0)); 1006 this->travelNode->shiftCoor(Vector(this->cameraSpeed * dt, 0, 0)); 1015 1007 1016 1008 break;
Note: See TracChangeset
for help on using the changeset viewer.