IrrAddHillPlaneMesh

section index

## NAME

IrrAddHillPlaneMesh - Add a HillPlane-Mesh.

## SYNOPSIS

*HillPlaneMesh.l = IrrAddHillPlaneMesh(name.s, sizeX.f, sizeY.f, tilesX.l, tilesY.l, texRepeatX.f, texRepeatY.f, hillsHeight.f, hillsCount.f)

## FUNCTION

Adds a Mesh

## INPUTS

name.s | - | A Name for the Mesh
sizeX.f,sizeY.f | - | Size of a tile of the mesh. (10.0f, 10.0f) would be a good value to start, for example.
tilesX.l, tilesY.l | - | Specifies how much tiles there will be. If you specifiy for example that a tile has the size (10.0f, 10.0f) and the tileCount is (10,10), than you get a field of 100 tiles wich has the dimension 100.0fx100.0f.
texRepeatX.f,texRepeatY.f | - | Defines how often the texture will be repeated in x and y direction.
hillsHeight.f | - | Height of the hills. If you specify a negative value you will get holes instead of hills. If the height is 0, no hills will be created.
hillscCount.f | - | Amount of hills on the plane. There will be countHills.X hills along the X axis and countHills.Y along the Y axis. So in total there will be countHills.X * countHills.Y hills.

## RESULT

Pointer to a Mesh (Animated-Mesh !!)

## EXAMPLE

        *hillplane_mesh.l = IrrAddHillPlaneMesh("MyPlane",10.0,10.0, 10.0,10.0,1.0,1.0,30.0,200.0)