VoxelGridOptions
What voxels takes for cubes built from a grid field.
Properties
Section titled “Properties”| Property | Type | Default value | Description |
|---|---|---|---|
cellSize |
number | Triple |
undefined |
Metres each cube is on a side, as Unity’s Grid.cellSize, or [x, y, z] for a box. |
empty? |
readonly number[] |
[0] |
The values that are not solid, such as air, water and flowers. |
grid |
GridField<GridArray, 3> |
undefined |
A three-dimensional grid field of the same entity, as ChunkTrait.fields.blocks. |