Changeset 10303 in orxonox.OLD for branches/playability
- Timestamp:
- Jan 23, 2007, 8:03:07 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/playability/src/world_entities/space_ships/space_ship.cc
r10298 r10303 1142 1142 void SpaceShip::updateTravelDistance() 1143 1143 { 1144 float x = fabsf(State::getCamera()->getAbsCoor().y) * tan(State::getCamera()->getFovy()*M_PI /360.0);1144 float x = 1.25*fabsf(State::getCamera()->getAbsCoor().y) * tan(State::getCamera()->getFovy()*M_PI /360.0); 1145 1145 float y = x / State::getCamera()->getAspectRatio(); 1146 1146 //State::getCamera()->setAbsCoor(-5, 1000, 0); … … 1151 1151 1152 1152 printf("x: %f, y: %f \n", x, y); 1153 this->travelDistancePlus = Vector2D( x, y);1154 this->travelDistanceMinus = Vector2D(- x, -y);1153 this->travelDistancePlus = Vector2D(y, x); 1154 this->travelDistanceMinus = Vector2D(-y, -x); 1155 1155 1156 1156 //this->isTravelDistanceInit = true;
Note: See TracChangeset
for help on using the changeset viewer.