Creates a new random terrain.

Namespace:  SGP.XSpace
Assembly:  SGPRTL (in SGPRTL.dll)
Version: 1.2.3019.18825

Syntax

C#
public XTerrain AddRandomTerrain(
	int width,
	int length,
	float height,
	int mountain,
	Texture texture
)

Parameters

width
Type: System..::.Int32
Width of the terrain to be created.
length
Type: System..::.Int32
Length of the terrain to be created.
height
Type: System..::.Single
Maximal elevation of the terrain to be created.
mountain
Type: System..::.Int32
Defines the mountainousness of the generated terrain, the bigger value the higher moutains.
texture
Type: Texture
The Texture texture of the terrain.

Return Value

Returns newly created XTerrain terrain.

See Also