Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Jan 30, 2007, 11:37:43 PM (17 years ago)
Author:
patrick
Message:

probably the parenting fix

File:
1 edited

Legend:

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

    r10516 r10526  
    616616  {
    617617    this->bRight = event.bPressed;
    618     printf("ShipCoors: %f , %f, %f \n", this->getAbsCoor().x, this->getAbsCoor().y, this->getAbsCoor().z);
    619618  }
    620619  else if( event.type == KeyMapper::PEV_FORWARD)
    621620  {
    622621    this->bForward = event.bPressed; //this->shiftCoor(0,.1,0);
    623 
    624622  }
    625623  else if( event.type == KeyMapper::PEV_BACKWARD)
     
    11551153     CameraMan* cm = State::getCameraman();
    11561154     Camera* c = cm->getCurrentCam();
    1157      
    1158      
     1155
     1156
    11591157  float x = 1.25 * this->actionWidthPercentage * fabsf(c->getAbsCoor().y) * tan(c->getFovy()*M_PI /360.0);
    11601158  float y = x / c->getAspectRatio() / this->actionWidthPercentage;
Note: See TracChangeset for help on using the changeset viewer.