Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5911 in orxonox.OLD for branches


Ignore:
Timestamp:
Dec 4, 2005, 2:30:33 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

    r5909 r5911  
    279279  //Vector rot(0.0, 0.0, 0.0);
    280280  //float rotVal = 0.0;
    281   /* FIXME: calculating the direction and orthDirection every timeSlice is redundant! save it somewhere */
     281
    282282  /* calculate the direction in which the craft is heading  */
    283   Vector forwardDirection (1.0, 0.0, 0.0) ; //x
     283  Vector forwardDirection = (this->getAbsDirX()).getNormalized(); //x
    284284   //direction = this->absDirection.apply (direction);
    285    Vector rightDirection (0.0, 0.0, 0.1); //z
     285  Vector rightDirection = (this->getAbsDirZ()).getNormalized(); //z
    286286   //orthDirection = orthDirection.cross (direction);
    287    Vector upDirection = (this->getAbsDirV()).getNormalized(); //y
     287   Vector upDirection = (this->getAbsDirY()).getNormalized(); //y
    288288
    289289
Note: See TracChangeset for help on using the changeset viewer.