- Timestamp:
- 10/11/06 05:35:05 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GTP/trunk/App/Demos/Vis/HillyTerrain/OGRE/TestCullingTerrainApplication.cpp
r1607 r1609 202 202 } 203 203 204 Vector3 v= Vector3::UNIT_SCALE;204 mInitialPosition = Vector3::UNIT_SCALE; 205 205 206 206 val = config.getSetting("ViewX"); 207 207 208 208 if (!val.empty()) 209 v.x = atof( val.c_str() );209 mInitialPosition.x = atof( val.c_str() ); 210 210 211 211 val = config.getSetting("ViewY"); 212 212 213 213 if (!val.empty()) 214 v.y = atof(val.c_str());214 mInitialPosition.y = atof(val.c_str()); 215 215 216 216 val = config.getSetting("ViewZ"); 217 217 218 218 if (!val.empty()) 219 v.z = atof( val.c_str());219 mInitialPosition.z = atof( val.c_str()); 220 220 221 221 … … 256 256 257 257 // set camera position accordingly 258 mCamNode->setPosition( v);258 mCamNode->setPosition(mInitialPosition); 259 259 } 260 260 //-----------------------------------------------------------------------
Note: See TracChangeset
for help on using the changeset viewer.