Changeset 110 for trunk/VUT/Ogre/src
- Timestamp:
- 05/24/05 07:21:00 (20 years ago)
- Location:
- trunk/VUT/Ogre/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VUT/Ogre/src/OgreSceneContentGenerator.cpp
r107 r110 86 86 { 87 87 Matrix3 mat; 88 mat.FromEulerAngles XYZ(Degree(rotation.x),//.valueRadians(),88 mat.FromEulerAnglesYXZ(Degree(rotation.x),//.valueRadians(), 89 89 Degree(rotation.y),//.valueRadians(), 90 90 Degree(rotation.z));//.valueRadians()); -
trunk/VUT/Ogre/src/OgreTerrainContentGenerator.cpp
r107 r110 51 51 //----------------------------------------------------------------------- 52 52 TerrainContentGenerator::TerrainContentGenerator(SceneManager *sm): 53 SceneContentGenerator(sm) //, mMaxHeight(50)53 SceneContentGenerator(sm), mOffset(0) 54 54 { 55 55 mMinPos = Vector3(0.0f, MAX_HEIGHT, 0.0f); … … 76 76 if (mRayQueryExecutor->executeRayQuery(&queryResult, position, Vector3::NEGATIVE_UNIT_Y)) 77 77 { 78 queryResult.y += mOffset; 78 79 // reject if height is too high 79 80 if (queryResult.y < mMaxPos.y) … … 91 92 } 92 93 //----------------------------------------------------------------------- 93 /*void TerrainContentGenerator::SetMaxHeight(Real maxHeight)94 void TerrainContentGenerator::SetOffset(Real offset) 94 95 { 95 m MaxHeight = maxHeight;96 } */96 mOffset = offset; 97 } 97 98 98 99 } // namespace Ogre
Note: See TracChangeset
for help on using the changeset viewer.