Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10512 in orxonox.OLD for trunk/src/world_entities/space_ships


Ignore:
Timestamp:
Jan 30, 2007, 8:01:19 PM (17 years ago)
Author:
bknecht
Message:

some changes so the vertical scroller will work better

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/space_ships/space_ship.cc

    r10503 r10512  
    6060#include "player.h"
    6161#include "camera.h"
     62#include "cameraman.h"
    6263
    6364
     
    11481149void SpaceShip::updateTravelDistance()
    11491150{
    1150   float x = 1.25 * this->actionWidthPercentage * fabsf(State::getCamera()->getAbsCoor().y) * tan(State::getCamera()->getFovy()*M_PI /360.0);
    1151   float y = x / State::getCamera()->getAspectRatio() / this->actionWidthPercentage;
     1151     CameraMan* cm = State::getCameraman();
     1152     Camera* c = cm->getCurrentCam();
     1153     
     1154     
     1155  float x = 1.25 * this->actionWidthPercentage * fabsf(c->getAbsCoor().y) * tan(c->getFovy()*M_PI /360.0);
     1156  float y = x / c->getAspectRatio() / this->actionWidthPercentage;
    11521157  //State::getCamera()->setAbsCoor(-5, 1000, 0);
    11531158
Note: See TracChangeset for help on using the changeset viewer.