voxels
voxels(
options):VoxelsShape
A grid of cubes size metres on a side, filled at cells, each
[x, y, z] the cube from those whole numbers times size to one
size past them, in the entity’s own axes: a world of blocks a game
edits one cell at a time with setVoxel. A fixed body takes it, which
the body’s type holds.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
options |
{ cells: readonly VoxelCell[]; size: number; } |
options.cells |
readonly VoxelCell[] |
options.size |
number |