Changeset 161 for trunk/VUT/Ogre/src


Ignore:
Timestamp:
07/08/05 17:34:05 (19 years ago)
Author:
mattausch
Message:

added moving robots

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/VUT/Ogre/src/OgreTerrainContentGenerator.cpp

    r135 r161  
    11#include "OgreTerrainContentGenerator.h" 
    22 
    3 #define MAX_HEIGHT 5000 // maximal possible height 
    43 
    54namespace Ogre { 
     
    6968SceneNode *TerrainContentGenerator::GenerateSceneObject(const Vector3 &position,  
    7069                                         const Vector3 &rotation, const String& objName, const bool clampToTerrain) 
    71 { 
     70{        
     71        if (clampToTerrain) 
     72                return GenerateSceneObject(position, rotation, objName); 
    7273         
    73         if (clampToTerrain) 
    74         { 
    75                 return GenerateSceneObject(position, rotation, objName); 
    76         } 
    77         else 
    78         { 
    79                 return SceneContentGenerator::GenerateSceneObject(position, rotation, objName); 
    80         } 
     74        return SceneContentGenerator::GenerateSceneObject(position, rotation, objName); 
    8175} 
    8276//----------------------------------------------------------------------- 
     
    10397} 
    10498//----------------------------------------------------------------------- 
    105 RayQueryExecutor *TerrainContentGenerator::GetRayQueryExecutor() 
    106 { 
    107         return mRayQueryExecutor; 
    108 } 
    109 //----------------------------------------------------------------------- 
    11099void TerrainContentGenerator::SetOffset(Real offset) 
    111100{ 
Note: See TracChangeset for help on using the changeset viewer.