Table of Contents

Method Wave

Namespace
Box3D
Assembly
Box3D.NET.dll

Wave(int, int, Vector3, float, float, bool)

Builds a rolling wave surface, useful for testing uneven terrain.

public static HeightField Wave(int rowCount, int columnCount, Vector3 scale, float rowFrequency = 1, float columnFrequency = 1, bool withHoles = false)

Parameters

rowCount int

The number of grid lines along the z axis.

columnCount int

The number of grid lines along the x axis.

scale Vector3

The cell size and height scale.

rowFrequency float

The wave frequency along one axis.

columnFrequency float

The wave frequency along the other.

withHoles bool

Whether to punch holes into some cells.

Returns

HeightField

The height field.