Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5981 in orxonox.OLD for branches/spaceshipcontrol/src/world_entities


Ignore:
Timestamp:
Dec 8, 2005, 12:22:30 AM (19 years ago)
Author:
bknecht
Message:

Spaceship turns back to normal if it's hovering skewed in the air

File:
1 edited

Legend:

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

    r5966 r5981  
    1111### File Specific:
    1212   main-programmer: Benjamin Knecht
    13    co-programmer: ...
     13   co-programmer: Silvan Nellen
    1414
    1515*/
     
    277277  this->shiftCoor(Vector(0,1,0)*cos(this->cycle*2.0)*0.02);
    278278 
     279  if (this->getAbsDirZ().y > 0.1) this->shiftDir(Quaternion(time*0.3, Vector(1,0,0)));
     280  else if (this->getAbsDirZ().y < -0.1) this->shiftDir(Quaternion(-time*0.3, Vector(1,0,0)));
     281 
    279282  //SDL_WarpMouse(GraphicsEngine::getInstance()->getResolutionX()/2, GraphicsEngine::getInstance()->getResolutionY()/2);
    280283
Note: See TracChangeset for help on using the changeset viewer.