Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10551 in orxonox.OLD for trunk


Ignore:
Timestamp:
Jan 31, 2007, 6:43:20 AM (18 years ago)
Author:
patrick
Message:

much less debug out. mounting weapons works now

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/graphics/importer/static_model.cc

    r10314 r10551  
    123123    if( (*groupIt)._faces.size() != 11)
    124124    {
    125       PRINTF(1)("the face count of %s is wrong, perhaps you missnamed this object or used the wrong mount point object (got %i faces)\n",
     125      PRINTF(4)("the face count of %s is wrong, perhaps you missnamed this object or used the wrong mount point object (got %i faces)\n",
    126126                groupName.c_str(), (*groupIt)._faces.size());
    127127    }
  • trunk/src/world_entities/mount_point.cc

    r10549 r10551  
    3838MountPoint::MountPoint (const Vector& up, const Vector& forward, const Vector& center, const std::string& name)
    3939{
    40   PRINTF(0)("Created mount point %s\n", name.c_str());
     40//   PRINTF(0)("Created mount point %s\n", name.c_str());
    4141  this->registerObject(this, MountPoint::_objectList);
    4242
     
    194194    else if( obj->isA( WeaponSlot::staticClassID()))
    195195    {
    196       PRINTF(0)("=========+>we got a weapon slot at\n");
    197       this->getAbsCoor().debug();
    198       this->_center.debug();
     196//       PRINTF(0)("=========+>we got a weapon slot at\n");
     197//       this->getAbsCoor().debug();
     198// //       this->_center.debug();
    199199
    200200
     
    204204      // now set the position, direction and reparent it to this node
    205205      this->_mount->setAbsCoor( this->_center);
    206       this->_mount->setAbsDir( this->getAbsDir());
     206      this->_mount->setAbsDir( Quaternion(_forward, _up));
    207207      this->_mount->setParent( this);
    208208    }
Note: See TracChangeset for help on using the changeset viewer.