Class: GroundGrid

GroundGrid(world)

Helper component that displays the grid on y=0 plane. GridMaterial: https://doc.babylonjs.com/toolsAndResources/assetLibraries/materialsLibrary/gridMat/

Constructor

new GroundGrid(world)

Parameters:
Name Type Description
world World
Source:

Classes

GroundGrid

Members

world :World

Type:
Source:

Methods

dispose()

Clean up used resources
Source:

hide()

Hide the grid, disposes of the mesh
Source:

replace()

Replace world ground with the created grid. Shows the grid if not shown already.
Source:

restore()

Restores the original world ground, and closes the grid.
Source:

show()

Show the grid
Source:
Returns:
ground mesh