Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 7, 2006, 5:27:54 PM (18 years ago)
Author:
bensch
Message:

absDir

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/space_ships/space_ship.cc

    r7087 r7092  
    248248{
    249249  Playable::loadParams(root);
    250 
    251   LoadParam(root, "abs-dir", this, SpaceShip, setRelDir);
    252 }
    253 
    254 void SpaceShip::setRelDir(float angle, float axisX, float axisY, float axisZ)
    255 {
    256   this->mouseDir = Quaternion(angle, Vector(axisX, axisY, axisZ));
     250}
     251
     252void SpaceShip::setAbsDirPlay(const Quaternion& quat)
     253{
     254  this->mouseDir = Quaternion(quat);
    257255}
    258256
Note: See TracChangeset for help on using the changeset viewer.