Changeset 8684 in orxonox.OLD for branches/terrain/src/world_entities
- Timestamp:
- Jun 21, 2006, 6:23:57 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/terrain/src/world_entities/terrain_entity.cc
r8595 r8684 174 174 175 175 /* translate */ 176 /* glTranslatef (this->getAbsCoor().x,177 this->getAbsCoor().y,178 this->getAbsCoor ().z );*/176 glTranslatef( this->getAbsCoor().x, 177 this->getAbsCoor().y, 178 this->getAbsCoor().z ); 179 179 /* rotate */ 180 180 // Vector tmpRot = this->getAbsDir().getSpacialAxis(); … … 397 397 float TerrainEntity::getHeight( float x, float z ) 398 398 { 399 Triple altitude( x, 0.0f, z ), normal( 0.0f, 0.0f, 0.0f ); 399 Triple altitude( x-getAbsCoor().x, 0.0f, z-getAbsCoor().z ), 400 normal( 0.0f, 0.0f, 0.0f ); 400 401 if ( terrain ) 401 402 terrain->getAltitude( altitude, normal );
Note: See TracChangeset
for help on using the changeset viewer.