XLE  v0.02.0
Public Member Functions | Protected Attributes | List of all members
SceneEngine::TerrainCoordinateSystem Class Reference

Describes the position and size of terrain in world coordinates More...

#include <TerrainConfig.h>

Public Member Functions

Float4x4 CellBasedToWorld () const
 
Float4x4 WorldToCellBased () const
 
Float3 TerrainOffset () const
 
void SetTerrainOffset (const Float3 &newOffset)
 
 TerrainCoordinateSystem (Float3 terrainOffset=Float3(0.f, 0.f, 0.f), float cellSizeInMeters=0.f)
 

Protected Attributes

Float3 _terrainOffset
 
float _cellSizeInMeters
 

Detailed Description

Describes the position and size of terrain in world coordinates

Terrain has it own native "terrain" and "cell-based" coordinate systems. However, these might not match world space coordinates exactly. Often we want to specify an extra translation and scale on the terrain to transform it into world space. This object jsut encapsulates that transformation.


The documentation for this class was generated from the following files: