Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 3, 2005, 5:48:25 PM (19 years ago)
Author:
snellen
Message:

space_ship.cc updated

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/spaceshipcontrol/src/world_entities/space_ships/space_ship.cc

    r5897 r5900  
    286286
    287287  if( this->bUp )
    288     travelSpeed++;
     288   {
     289    if(velocity.len() == 0)
     290      accel += ((this->getAbsDir()).getSpacialAxis().getNormalized());
     291    else
     292      travelSpeed++;
     293   }
     294
    289295  if( this->bDown )
     296   {
     297    if(velocity.len() == 0)
     298      accel -= ((this->getAbsDir()).getSpacialAxis().getNormalized());
     299    else
    290300    travelSpeed--;
    291 
     301   }
    292302
    293303  if( this->bLeft /* > -this->getRelCoor().z*2*/)
Note: See TracChangeset for help on using the changeset viewer.