Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10216 in orxonox.OLD


Ignore:
Timestamp:
Jan 10, 2007, 3:18:41 PM (17 years ago)
Author:
patrick
Message:

nicer mounting point implementation, some more skeletton

Location:
branches/mount_points/src
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • branches/mount_points/src/lib/graphics/importer/model.cc

    r10201 r10216  
    9898void Model::addMountPoint(const Vector& up, const Vector& forward, const Vector& center, const std::string& name)
    9999{
    100   PRINTF(0)("added mount point\n");
    101 
    102100  mountPointSkeleton mps;
    103101  mps.up = up;
     
    107105
    108106  this->mountPoints.push_back(mps);
    109   PRINTF(0)(" size: %i\n", this->mountPoints.size());
    110107}
  • branches/mount_points/src/lib/graphics/importer/static_model.cc

    r10202 r10216  
    228228  this->pModelInfo.pTriangles = this->data->getTrianglesExt();
    229229  this->pModelInfo.numTriangles = this->data->getTriangles().size();
    230 
    231   this->extractMountPoints();
    232230}
    233231
  • branches/mount_points/src/story_entities/game_world.cc

    r10013 r10216  
    1111   ### File Specific:
    1212   main-programmer: Patrick Boenzli
     13   main-programmer: Benjamin Grauer
    1314   co-programmer: Christian Meyer
    14    co-programmer: Benjamin Grauer
     15
    1516*/
    1617
     
    7374SHELL_COMMAND(togglePNodeVisibility, GameWorld, togglePNodeVisibility);
    7475SHELL_COMMAND(showBVLevel, GameWorld, toggleBVVisibility);
     76SHELL_COMMAND(showMountPoints, GameWorld, toggleMPVisibility);
    7577
    7678
  • branches/mount_points/src/story_entities/game_world.h

    r9869 r10216  
    6262  void togglePNodeVisibility();
    6363  void toggleBVVisibility(int level);
     64  inline void toggleMPVisibility() { this->showMPV = !this->showMPV; }
    6465
    6566  inline void setSky(WorldEntity* sky) { this->dataTank->sky = sky; }
     
    99100  bool                showBV;                       //!< if the Bounding Volumes should be visible.
    100101  int                 showBVLevel;                  //!< the depth level of the displayed bounding volumes
     102  bool                showMPV;                      //!< true if the mounting points should be drawn for debug purposes
    101103
    102104  /* world timing */
  • branches/mount_points/src/world_entities/mount_point.cc

    r10203 r10216  
    3535MountPoint::MountPoint (const Vector& up, const Vector& forward, const Vector& center, const std::string& name)
    3636{
     37  PRINTF(0)("Created mount point %s\n", name.c_str());
    3738
    3839  this->_name = name;
  • branches/mount_points/src/world_entities/world_entity.cc

    r10203 r10216  
    278278  PRINTF(0)("loading the oif File: %s\n", fileName.c_str());
    279279
     280  // extract the mount points
     281  model->extractMountPoints();
     282
    280283  // first get all mount points from the model
    281284  const std::list<mountPointSkeleton> mpList = model->getMountPoints();
Note: See TracChangeset for help on using the changeset viewer.