Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5909 in orxonox.OLD for branches


Ignore:
Timestamp:
Dec 4, 2005, 11:04:50 AM (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

    r5908 r5909  
    281281  /* FIXME: calculating the direction and orthDirection every timeSlice is redundant! save it somewhere */
    282282  /* calculate the direction in which the craft is heading  */
    283    Vector forwardDirection (1.0, 0.0, 0.0); //x
     283  Vector forwardDirection (1.0, 0.0, 0.0) ; //x
    284284   //direction = this->absDirection.apply (direction);
    285    Vector rightDirection (0.0, 0.0, 0.1); //y
     285   Vector rightDirection (0.0, 0.0, 0.1); //z
    286286   //orthDirection = orthDirection.cross (direction);
    287    Vector upDirection (0.0, 1.0, 0.0); //z
     287   Vector upDirection = (this->getAbsDirV()).getNormalized(); //y
    288288
    289289
     
    292292  if( this->bUp )
    293293   {
    294      accel += (this->getAbsDirV()).getNormalized();
     294     accel += forwardDirection;
    295295      //if(travelSpeed <= 5000)  travelSpeed += 10;
    296296   }
     
    298298  if( this->bDown )
    299299   {
    300      accel -=  (this->getAbsDirV()).getNormalized();
     300     accel -=  forwardDirection;
    301301     //if(travelSpeed >= 10) travelSpeed -= 10;
    302302   }
Note: See TracChangeset for help on using the changeset viewer.