Skip to content

VoxelTerrainProvider ​

Inherits: TerrainProvider < Node

Tells which surface type the ground is at a position on a voxel terrain (Voxel Tools): the voxel type under the position is looked up in voxel_type_map, and default_surface is used when it has no entry.

Properties ​

Dictionary[int, String]voxel_type_map{}

Methods ​

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

Property descriptions ​

Dictionary[int, String] voxel_type_map = ​

Which surface type each voxel type stands for.

Method descriptions ​

bool supports( feature: StringName ) ​

What this provider answers from the voxels: the surface type. The ground itself is found by the physics of the world (a voxel terrain makes collision).

String get_surface_type( position: Vector3 ) ​

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