Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10549 in orxonox.OLD for trunk/src/world_entities/mount_point.cc


Ignore:
Timestamp:
Jan 31, 2007, 6:30:06 AM (19 years ago)
Author:
patrick
Message:

more on mounting weapons

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/mount_point.cc

    r10546 r10549  
    4444  this->setRelCoor( center);
    4545  this->setRelDir( Quaternion(forward, up));
     46
     47  this->_center = center;
     48  this->_up = up;
     49  this->_forward = forward;
    4650
    4751  this->init();
     
    191195    {
    192196      PRINTF(0)("=========+>we got a weapon slot at\n");
    193       this->getRelCoor().debug();
     197      this->getAbsCoor().debug();
     198      this->_center.debug();
    194199
    195200
     
    198203
    199204      // now set the position, direction and reparent it to this node
    200       this->_mount->setRelCoor( this->getRelCoor());
    201       this->_mount->setRelDir( this->getRelDir());
     205      this->_mount->setAbsCoor( this->_center);
     206      this->_mount->setAbsDir( this->getAbsDir());
    202207      this->_mount->setParent( this);
    203208    }
Note: See TracChangeset for help on using the changeset viewer.