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
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.
withHolesbool-
Whether to punch holes into some cells.
Returns
- HeightField
-
The height field.