Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8219 in orxonox.OLD for branches/bsp_model/src/lib/graphics/importer


Ignore:
Timestamp:
Jun 7, 2006, 10:15:00 PM (18 years ago)
Author:
patrick
Message:

bsp: new ground collision attribute tripple

Location:
branches/bsp_model/src/lib/graphics/importer
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/bsp_model/src/lib/graphics/importer/bsp_manager.cc

    r8218 r8219  
    4848//CREATE_FACTORY( BspManager, CL_BSP_MODEL);
    4949
    50 BspManager::BspManager()
    51 {
     50BspManager::BspManager(WorldEntity* parent)
     51{
     52  this->parent = parent;
    5253  /*// open a BSP file
    5354  this->bspFile = new BspFile();
     
    917918    // Return the normal here: Normal's stored in this->collPlane;
    918919   if(collision)
    919      worldEntity->registerCollision(worldEntity, Vector(this->collPlane->x, this->collPlane->y, this->collPlane->z), out);
     920     worldEntity->registerCollision(worldEntity, this->parent, Vector(this->collPlane->x, this->collPlane->y, this->collPlane->z), out);
    920921}
    921922
  • branches/bsp_model/src/lib/graphics/importer/bsp_manager.h

    r8218 r8219  
    5151public:
    5252  // Constructors
    53   BspManager();
     53  BspManager(WorldEntity* parent);
    5454
    5555  BspManager(const char* fileName, float scale = 0.4f);
     
    9999                            For example, if traceMins was (-100,-3,-15) and traceMaxs was (55,22,7), traceExtents */
    100100
     101  WorldEntity* parent;          //!< the parent entity of the bspManager: interface to this
    101102
    102103  bool * alreadyVisible;
Note: See TracChangeset for help on using the changeset viewer.