Skip to main content

Build Mound

Creates a mound on the terrain with a specified height and width at the agent's current position.

Build Mound block

Description

The Build Mound block creates a mound with a height given by the first input and a width given by the second input. This is a code block part of the Environment drawer.

Usage

Build Mound creates a raised area on the terrain at the agent's current position. The mound's elevation and spread can be controlled through the height and width parameters.

Syntax

Inputs:

  • Height: A number specifying the height of the mound
  • Width: A number specifying the width of the mound

Example

When create terrain is pushed, a random amount of mounds and craters are formed with different sizes and locations.

Build Mound example code

Notes

The mound is created centered at the agent's current position. Larger width values create more gradual slopes, while smaller width values create steeper mounds.