Real World Terrain
v4.1
|
This class is added to each created terrains.
It contains all information about the terrain.
More...
Public Member Functions | |
override RealWorldTerrainItem | GetItemByWorldPosition (Vector3 worldPosition) |
Get RealWorldTerrainItem by Unity World Position. More... | |
override bool | GetWorldPosition (double lng, double lat, out Vector3 worldPosition) |
Get Unity World Position by geographic coordinates. More... | |
override bool | GetWorldPosition (Vector2 coordinates, out Vector3 worldPosition) |
Get Unity World Position by geographic coordinates. More... | |
Public Member Functions inherited from InfinityCode.RealWorldTerrain.RealWorldTerrainMonoBase | |
bool | Contains (Vector2 coordinates) |
Checks whether the coordinate in terrain area. More... | |
bool | Contains (double lng, double lat) |
Checks whether the coordinate in terrain area. More... | |
double | GetAltitudeByCoordinates (double lng, double lat) |
Get altitude by location (coordinates). More... | |
double | GetAltitudeByLocation (double lng, double lat) |
Get altitude by location (coordinates). More... | |
double | GetAltitudeByWorldPosition (Vector3 worldPosition) |
Get altitude by Unity World Position. More... | |
bool | GetCoordinatesUnderCursor (out Vector2 coordinates, Camera cam=null) |
Get coordinates under mouse cursor More... | |
bool | GetCoordinatesByScreenPosition (Vector2 screenPosition, out Vector2 coordinates, Camera cam=null) |
Converts the screen coordinates into geographic coordinates. More... | |
bool | GetCoordinatesByScreenPosition (Vector2 screenPosition, out double longitude, out double latitude, out double altitude, Camera cam=null) |
Converts the screen coordinates into geographic coordinates. More... | |
bool | GetCoordinatesByWorldPosition (Vector3 worldPosition, out Vector2 coordinates) |
Converts the world coordinates into geographic coordinates. More... | |
bool | GetCoordinatesByWorldPosition (Vector3 worldPosition, out double longitude, out double latitude) |
Converts the world coordinates into geographic coordinates. More... | |
bool | GetCoordinatesByWorldPosition (Vector3 worldPosition, out double longitude, out double latitude, out double altitude) |
Converts the world coordinates into geographic coordinates. More... | |
bool | GetWorldPosition (double lng, double lat, double altitude, out Vector3 worldPosition) |
Get Unity World Position by geographic coordinates. More... | |
Public Attributes | |
RealWorldTerrainContainer | container |
Reference to RealWorldTerrainContainer instance. More... | |
int | x |
X index. More... | |
int | y |
Y index. More... | |
int | ry |
Reversed Y index (ry = countY - y - 1). More... | |
MeshFilter | meshFilter |
Reference to MeshFilter, if result is mesh. More... | |
Terrain | terrain |
Reference to Terrain, if result is terrain. More... | |
Public Attributes inherited from InfinityCode.RealWorldTerrain.RealWorldTerrainMonoBase | |
Bounds | bounds |
Coordinates borders of terrain More... | |
bool | generateTextures |
Specifies whether to create textures More... | |
bool | generatedBuildings |
Specifies whether to create buildings More... | |
bool | generatedGrass |
Specifies whether to create grass More... | |
bool | generatedTextures |
Specifies whether to create textures More... | |
bool | generatedTrees |
Specifies whether to create trees More... | |
double | maxElevation |
Maximal value of elevation More... | |
double | minElevation |
Minimal value of elevation More... | |
RealWorldTerrainPrefsBase | prefs |
Reference to the preferences More... | |
Vector3 | scale |
Scale of terrains More... | |
Vector3 | size |
Size of terrains in world units More... | |
double | topLatitude |
Top latitude More... | |
double | topMercator |
Top latitude in Mercator projection (0-1) More... | |
double | leftLongitude |
Left longitude More... | |
double | leftMercator |
Left longitude in Mercator projection (0-1) More... | |
double | bottomLatitude |
Bottom latitude More... | |
double | bottomMercator |
Bottom latitude in Mercator projection (0-1) More... | |
double | rightLongitude |
Right longitude More... | |
double | rightMercator |
Right longitude in Mercator projection (0-1) More... | |
double | width |
Width. Right longitude - left longitude More... | |
double | height |
Height. Top latitude - bottom latitude More... | |
Properties | |
Texture2D? | texture [get, set] |
Refetence to texture More... | |
TerrainData? | terrainData [get] |
Gets TerrainData. More... | |
This class is added to each created terrains.
It contains all information about the terrain.
|
virtual |
Get RealWorldTerrainItem by Unity World Position.
worldPosition | Position in Unity World Space |
Implements InfinityCode.RealWorldTerrain.RealWorldTerrainMonoBase.
|
virtual |
Get Unity World Position by geographic coordinates.
lng | Longitude |
lat | Latitde |
worldPosition | Position in Unity World Space |
Implements InfinityCode.RealWorldTerrain.RealWorldTerrainMonoBase.
|
virtual |
Get Unity World Position by geographic coordinates.
coordinates | Geographic coordinates |
worldPosition | Position in Unity World Space |
Implements InfinityCode.RealWorldTerrain.RealWorldTerrainMonoBase.
RealWorldTerrainContainer InfinityCode.RealWorldTerrain.RealWorldTerrainItem.container |
Reference to RealWorldTerrainContainer instance.
MeshFilter InfinityCode.RealWorldTerrain.RealWorldTerrainItem.meshFilter |
Reference to MeshFilter, if result is mesh.
int InfinityCode.RealWorldTerrain.RealWorldTerrainItem.ry |
Reversed Y index (ry = countY - y - 1).
Terrain InfinityCode.RealWorldTerrain.RealWorldTerrainItem.terrain |
Reference to Terrain, if result is terrain.
int InfinityCode.RealWorldTerrain.RealWorldTerrainItem.x |
X index.
int InfinityCode.RealWorldTerrain.RealWorldTerrainItem.y |
Y index.
|
get |
Gets TerrainData.
|
getset |
Refetence to texture