Skip to content
Work in progress. These docs describe Spawnite at launch, and some parts are still being built.

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.

Parameter Type
options { cells: readonly VoxelCell[]; size: number; }
options.cells readonly VoxelCell[]
options.size number

VoxelsShape