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

HeightfieldGridShape

Heights from the entity’s two-dimensional grid field trait.field, x as columns and y as rows along z, spread over size and centred on the entity. Both ends rebuild it from the grid when its version changes. A fixed body’s alone.

Property Modifier Type Description
field readonly string The grid field’s name in the trait.
size readonly readonly [number, number] -
trait readonly string The name the grid’s trait was defined under.
type readonly HeightfieldGrid -