Table of Contents

Method Grid

Namespace
Box3D
Assembly
Box3D.NET.dll

Grid(int, int, Vector3, bool)

Builds a flat grid, useful as a test floor.

public static HeightField Grid(int rowCount, int columnCount, Vector3 scale, 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.

withHoles bool

Whether to punch holes into some cells.

Returns

HeightField

The height field.