Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 4, 2006, 4:35:25 PM (18 years ago)
Author:
patrick
Message:

collision: setup test topology

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/cd/src/world_entities/world_entity.cc

    r7365 r7537  
    3636SHELL_COMMAND(model, WorldEntity, loadModel)
    3737->describe("sets the Model of the WorldEntity")
    38 ->defaultValues("models/ships/fighter.obj", 1.0);
     38->defaultValues("models/ships/fighter.obj", 1.0f);
    3939
    4040SHELL_COMMAND(debugEntity, WorldEntity, debugWE);
     
    118118 * @param fileName the name of the model to load
    119119 * @param scaling the Scaling of the model
    120  */
    121 void WorldEntity::loadModel(const std::string& fileName, float scaling, unsigned int modelNumber)
     120 *
     121 * FIXME
     122 * @todo: separate the obb tree generation from the model
     123 */
     124void WorldEntity::loadModel(const std::string& fileName, float scaling, unsigned int modelNumber, unsigned int obbTreeDepth)
    122125{
    123126  this->modelLODName = fileName;
     
    154157
    155158      if( modelNumber == 0)
    156         this->buildObbTree(4);
     159        this->buildObbTree(obbTreeDepth);
    157160    }
    158161    else if(fileName.find(".md2") != std::string::npos)
     
    164167
    165168      if( m != NULL)
    166         this->buildObbTree(4);
     169        this->buildObbTree(obbTreeDepth);
    167170    }
    168171  }
     
    571574    std::string name = getModel( 0 )->getName();
    572575
    573     if (  name.find( ResourceManager::getInstance()->getDataDir() ) == 0 ) 
     576    if (  name.find( ResourceManager::getInstance()->getDataDir() ) == 0 )
    574577    {
    575578      name.erase(ResourceManager::getInstance()->getDataDir().size());
Note: See TracChangeset for help on using the changeset viewer.