Changeset 9098 in orxonox.OLD for branches/presentation
- Timestamp:
- Jul 4, 2006, 3:41:46 AM (18 years ago)
- Location:
- branches/presentation/src/world_entities/space_ships
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/presentation/src/world_entities/space_ships/spacecraft_2d.cc
r9097 r9098 205 205 LoadParam(root, "travel-speed", this, Spacecraft2D, setTravelSpeed); 206 206 LoadParam(root, "travel-height", this, Spacecraft2D, setTravelHeight); 207 LoadParam(root, "travel-distance", this, Spacecraft2D, setTravelDistance); 207 208 } 208 209 … … 225 226 } 226 227 228 229 void Spacecraft2D::setTravelDistance(const Vector2D& distance) 230 { 231 this->travelDistance = distance; 232 } 233 234 void Spacecraft2D::setTravelDistance(float x, float y) 235 { 236 this->setTravelDistance(Vector2D(x, y)); 237 } 227 238 228 239 … … 255 266 State::getCameraNode()->setRelCoorSoft(-10, 0,0); 256 267 State::getCameraTargetNode()->setParentSoft(&this->cameraNode); 268 State::getCameraTargetNode()->setRelCoorSoft(100, 0,0); 269 257 270 } 258 271 break; … … 274 287 State::getCameraNode()->setRelCoorSoft(-3, 50,0); 275 288 State::getCameraTargetNode()->setParentSoft(this->travelNode); 289 State::getCameraTargetNode()->setRelCoorSoft(0,0,0); 276 290 277 291 -
branches/presentation/src/world_entities/space_ships/spacecraft_2d.h
r9097 r9098 25 25 void setTravelSpeed(float travelSpeed); 26 26 void setTravelHeight(float travelHeight); 27 void setTravelDistance(const Vector2D& distance); 28 void setTravelDistance(float x, float y); 27 29 28 30 … … 70 72 float travelSpeed; //!< the current speed of the Hove (to make soft movement) 71 73 74 Vector2D travelDistance; //!< Travel-Distance away from the TravelNode. 75 72 76 /// Camera 73 77 PNode cameraNode;
Note: See TracChangeset
for help on using the changeset viewer.