Function CreateGround
-
CreateGround(
name: string,
options?: {
height?: number;
subdivisions?: number;
subdivisionsX?: number;
subdivisionsY?: number;
updatable?: boolean;
width?: number;
},
scene?: Scene,
): GroundMeshParameters
- name: string
defines the name of the mesh
- options: {
height?: number;
subdivisions?: number;
subdivisionsX?: number;
subdivisionsY?: number;
updatable?: boolean;
width?: number;
} = {}defines the options used to create the mesh
widthset the width size (float, default 1)heightset the height size (float, default 1)subdivisionssets the number of subdivision per side (default 1)subdivisionsXsets the number of subdivision on the X axis (overrides subdivisions)subdivisionsYsets the number of subdivision on the Y axis (overrides subdivisions)updatabledefines if the mesh must be flagged as updatable (default false)
Optionalscene: Scenedefines the hosting scene
Returns GroundMesh
the ground mesh
- name: string
Creates a ground mesh