Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3539 in orxonox.OLD for orxonox/trunk/src/track_manager.cc


Ignore:
Timestamp:
Mar 14, 2005, 12:35:46 AM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: a little enhancement in trackmanager to turn the tracknode into the moving direction. since i have no real up-vector, it doensnt turn right into the moving direction. but almost

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/track_manager.cc

    r3528 r3539  
    661661      Vector tmp = this->calcPos();
    662662      Quaternion quat = Quaternion(this->calcDir(), Vector(this->currentTrackElem->curve->calcAcc((localTime-this->currentTrackElem->startingTime)/this->currentTrackElem->duration).x,1,this->currentTrackElem->curve->calcAcc((localTime-this->currentTrackElem->startingTime)/this->currentTrackElem->duration).z));
     663
     664      Vector v(0.0, 1.0, 0.0);
     665      Quaternion q(-90.0, v);
     666      //this->relDirection = this->relDirection * q;
     667      quat = quat * q;
     668
    663669      this->bindSlave->setAbsCoor(&tmp);
    664670      this->bindSlave->setAbsDir(&quat);
Note: See TracChangeset for help on using the changeset viewer.