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
rowCountint-
The number of grid lines along the z axis.
columnCountint-
The number of grid lines along the x axis.
scaleVector3-
The cell size and height scale.
rowFrequencyfloat-
The wave frequency along one axis.
columnFrequencyfloat-
The wave frequency along the other.
withHolesbool-
Whether to punch holes into some cells.
Returns
- HeightField
-
The height field.