public SquareMeshBuilder(float[,] heightMap, Vector3 offset, float tileSize, Matrix? rootTransform = null) { _tileSize = tileSize; _rootTransform = rootTransform; _offset = offset; _heightMap = heightMap; var rows = heightMap.GetLength(0); var cols = heightMap.GetLength(1); _jumpIndices = ArrayUtil.MakeTwoDimensionalArray(-1, rows, cols); _vertices = new List<Vector3>(rows * cols); }