Changeset 161 for trunk/VUT/Ogre/src
- Timestamp:
- 07/08/05 17:34:05 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/Ogre/src/OgreTerrainContentGenerator.cpp
r135 r161 1 1 #include "OgreTerrainContentGenerator.h" 2 2 3 #define MAX_HEIGHT 5000 // maximal possible height4 3 5 4 namespace Ogre { … … 69 68 SceneNode *TerrainContentGenerator::GenerateSceneObject(const Vector3 &position, 70 69 const Vector3 &rotation, const String& objName, const bool clampToTerrain) 71 { 70 { 71 if (clampToTerrain) 72 return GenerateSceneObject(position, rotation, objName); 72 73 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); 81 75 } 82 76 //----------------------------------------------------------------------- … … 103 97 } 104 98 //----------------------------------------------------------------------- 105 RayQueryExecutor *TerrainContentGenerator::GetRayQueryExecutor()106 {107 return mRayQueryExecutor;108 }109 //-----------------------------------------------------------------------110 99 void TerrainContentGenerator::SetOffset(Real offset) 111 100 {
Note: See TracChangeset
for help on using the changeset viewer.