Skip to content

HTerrainProvider ​

Inherits: TerrainProvider < Node

Tells which surface type the ground is at a position on a Heightmap Terrain (HTerrain): the texture under the position is looked up in texture_surface_map, and default_surface is used when it has no entry.

Properties ​

Dictionary[int, String]texture_surface_map{}

Methods ​

boolsupports( feature: StringName )
Stringget_surface_type( position: Vector3 )

Property descriptions ​

Dictionary[int, String] texture_surface_map = ​

Which surface type each texture of the terrain stands for.

Method descriptions ​

bool supports( feature: StringName ) ​

What this provider answers from the data of HTerrain: the height and the direction of the ground, and the surface type.

String get_surface_type( position: Vector3 ) ​

The surface type of the ground at a position (the default when it is not known).