Skip to main content
POST
/
terrain
/
create
create a flat heightmap terrain
curl --request POST \
  --url http://localhost:3917/terrain/create \
  --header 'Content-Type: application/json' \
  --data '
{
  "cell_size": 123,
  "height": 1,
  "width": 1
}
'
{
  "cell_size": 1,
  "entity_id": 11,
  "height": 64,
  "ok": true,
  "width": 64,
  "world_depth": 64,
  "world_width": 64
}

Body

application/json
cell_size
number<float>
height
integer<int32>
Required range: x >= 0
width
integer<int32>
Required range: x >= 0

Response

200 - application/json

The spawned terrain entity id plus the grid dimensions and resulting world extents.