|
Real World Terrain
v4.1
|
This class is added to the resulting container.
It contains all information about terrains.
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... | |
Static Public Member Functions | |
| static RealWorldTerrainContainer [] | GetInstances () |
| Gets all instances of RealWorldTerrainContainer. More... | |
Public Attributes | |
| float | billboardStart = 50 |
| Billboard start. More... | |
| float | detailDensity = 1 |
| Detail density. More... | |
| float | detailDistance = 80 |
| Detail distance. More... | |
| string | folder |
| The folder in the project where located terrains. More... | |
| RealWorldTerrainVector2i | terrainCount |
| Count of terrains. More... | |
| string | title |
| Title More... | |
| float | treeDistance = 2000 |
| Tree distance. More... | |
| RealWorldTerrainItem [] | terrains |
| The array of elements that belong to the current process of generation. 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... | |
This class is added to the resulting container.
It contains all information about terrains.
|
static |
Gets all instances of RealWorldTerrainContainer.
|
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.
| float InfinityCode.RealWorldTerrain.RealWorldTerrainContainer.billboardStart = 50 |
Billboard start.
| float InfinityCode.RealWorldTerrain.RealWorldTerrainContainer.detailDensity = 1 |
Detail density.
| float InfinityCode.RealWorldTerrain.RealWorldTerrainContainer.detailDistance = 80 |
Detail distance.
| string InfinityCode.RealWorldTerrain.RealWorldTerrainContainer.folder |
The folder in the project where located terrains.
| RealWorldTerrainVector2i InfinityCode.RealWorldTerrain.RealWorldTerrainContainer.terrainCount |
Count of terrains.
| RealWorldTerrainItem [] InfinityCode.RealWorldTerrain.RealWorldTerrainContainer.terrains |
The array of elements that belong to the current process of generation.
| string InfinityCode.RealWorldTerrain.RealWorldTerrainContainer.title |
Title
| float InfinityCode.RealWorldTerrain.RealWorldTerrainContainer.treeDistance = 2000 |
Tree distance.