Grid
The grid() function sets up a grid. This is useful for providing a reference plane in 3D
space. The function returns the THREE.GridHelper instance created.
grid(); grid(null, 200, COLOR.FOREGROUND);
Configuration
The grid function takes in 4 optional arguments that let you customize its appearance:
size: The size of the grid.spacing: The size of the grid cells.color: A color value for the grid lines. Default color isCOLOR.SECONDARY.normal: A 3d vector representing the normal direction of the grid plane. Default isDIR.UP(Y-axis).
grid(300, 20, COLOR.FOREGROUND, DIR.Z);