Function CreateTiledGroundVertexData
-
CreateTiledGroundVertexData(
options: {
precision?: { h: number; w: number };
subdivisions?: { h: number; w: number };
xmax: number;
xmin: number;
zmax: number;
zmin: number;
},
): VertexDataParameters
- options: {
precision?: { h: number; w: number };
subdivisions?: { h: number; w: number };
xmax: number;
xmin: number;
zmax: number;
zmin: number;
}an object used to set the following optional parameters for the Ground
xminground minimum X coordinate, default -1zminground minimum Z coordinate, default -1xmaxground maximum X coordinate, default 1zmaxground maximum Z coordinate, default 1subdivisionsa javascript object\{w: positive integer, h: positive integer\},wandhare the numbers of subdivisions on the ground width and height creating 'tiles', default\{w: 6, h: 6\}precisiona javascript object\{w: positive integer, h: positive integer\},wandhare the numbers of subdivisions on the tile width and height, default\{w: 2, h: 2\}
Returns VertexData
the VertexData of the TiledGround
- options: {
Creates the VertexData for a TiledGround by subdividing the ground into tiles