# Debug commands of @ferret/physics-terrain

Call with `world.commands.execute(name, args)`; `world.commands.list()` on the running game is the authority. Read from the sources of these packages.

- `terrain.at` — ground at a point: {x, z} -> {height, soil}
- `terrain.compact` — pack heap into ground: {footprint} -> volume lost
- `terrain.dig` — dig: {footprint, depth, tool:{power,reach}, dt?} -> {removed, spoil:id, energy, blocked, flooded}
- `terrain.dump` — pour a dug heap: {spoil, at:[x,z]}
- `terrain.fill` — fill to a height: {footprint, soil, height, loose?}
- `terrain.level` — flatten to a height: {footprint, height, soil?}
- `terrain.wet` — wet the ground: {footprint, moisture 0..1}
