Changeset 10593 in orxonox.OLD for branches/cleanup/src/world_entities/space_ships/space_ship.cc
- Timestamp:
- Feb 14, 2007, 7:27:23 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/cleanup/src/world_entities/space_ships/space_ship.cc
r10591 r10593 1141 1141 void SpaceShip::setCameraDistance(float dist) 1142 1142 { 1143 1144 CameraMan* cm = State::getCameraman(); 1145 Camera* c = cm->getCurrentCam(); 1143 Camera* c = State::getCamera(); 1146 1144 c->setViewTopDistance(dist); 1147 1145 … … 1153 1151 { 1154 1152 1155 CameraMan* cm = State::getCameraman(); 1156 Camera* c = cm->getCurrentCam(); 1153 Camera* c = State::getCamera(); 1157 1154 c->setViewTopFovy(fovy); 1158 1155 … … 1163 1160 void SpaceShip::updateTravelDistance() 1164 1161 { 1165 CameraMan* cm = State::getCameraman(); 1166 Camera* c = cm->getCurrentCam(); 1167 1162 1163 Camera* c = State::getCamera(); 1168 1164 1169 1165 float x = 1.25 * this->actionWidthPercentage * fabsf(c->getAbsCoor().y) * tan(c->getFovy()*M_PI /360.0);
Note: See TracChangeset
for help on using the changeset viewer.