VoxelGridShape
Boxes cellSize metres on a side, or [x, y, z], built from a grid
field trait.field of the entity, in the entity’s own axes. From a
three-dimensional grid, one for each cell whose value empty does
not list, the cell at x, y, z the box from [x, y, z] times
cellSize. From a two-dimensional grid of columns, the cell at
x, z a stack of as many boxes from y 0 as its value. Both ends build
it from the grid and change it in place as the grid changes. A fixed
body’s alone.
Properties
Section titled “Properties”| Property | Modifier | Type | Description |
|---|---|---|---|
cellSize |
readonly |
number | Triple |
- |
columns |
readonly |
boolean |
Whether the grid is two-dimensional, each value a column’s height in boxes. |
empty |
readonly |
readonly number[] |
The values that are not solid. |
field |
readonly |
string |
The grid field’s name in the trait. |
trait |
readonly |
string |
The name the grid’s trait was defined under. |
type |
readonly |
VoxelGrid |
- |