Changeset 9147 in orxonox.OLD for branches/terrain/src/world_entities
- Timestamp:
- Jul 4, 2006, 3:45:43 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/terrain/src/world_entities/terrain_entity.cc
r9140 r9147 25 25 #include "model.h" 26 26 #include "network_game_manager.h" 27 27 #include "vector.h" 28 28 #include "material.h" 29 29 … … 167 167 void TerrainEntity::setScale(float x, float y, float z) 168 168 { 169 terrain->setScale( Triple( x, y, z ) );169 terrain->setScale( Vector( x, y, z ) ); 170 170 } 171 171 … … 220 220 221 221 if ( this->terrain ) { 222 terrain->setCameraPosition( Triple( cam.x, cam.y, cam.z ));222 terrain->setCameraPosition( cam ); 223 223 terrain->draw( ); 224 224 } … … 405 405 void TerrainEntity::getAltitude( Vector& _position, Vector& _normal ) 406 406 { 407 Triplealtitude( _position.x-getAbsCoor().x, 0.0f, _position.z-getAbsCoor().z ),407 Vector altitude( _position.x-getAbsCoor().x, 0.0f, _position.z-getAbsCoor().z ), 408 408 normal( 0.0f, 0.0f, 0.0f ); 409 409 if ( terrain ) … … 416 416 float TerrainEntity::getHeight( float x, float z ) 417 417 { 418 Triplealtitude( x-getAbsCoor().x, 0.0f, z-getAbsCoor().z ),418 Vector altitude( x-getAbsCoor().x, 0.0f, z-getAbsCoor().z ), 419 419 normal( 0.0f, 0.0f, 0.0f ); 420 420 if ( terrain )
Note: See TracChangeset
for help on using the changeset viewer.