# Debug commands of @ferret/physics-liquids

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

- `capillary.add` — a capillary tube in a reservoir: {id, reservoir, radius, solid?, length?}
- `edit.physics.hydraulics.remove` — remove a circuit: {name}
- `edit.physics.hydraulics.set` — add or replace a circuit: {name, lines, cylinders, links, valves, ...} (checked against the schema)
- `fluid.info` — particles, volume, solver work and cost of the particle liquids
- `gate.force` — force of a reservoir on a vertical gate: {id, width, yBottom, yTop}
- `hydraulic.lever` — move a hand pump lever 0..1: {circuit, pump, value}
- `hydraulic.open` — set the opening 0..1 of a link (a tap): {circuit, link, value}
- `hydraulic.spool` — move a directional valve spool -1..1 (extend, hold, retract): {circuit, valve, value}
- `hydraulic.state` — pressures, cylinders and flows of a circuit: {circuit?}
- `link.add` — add a pipe/orifice/pump link: see LinkDef
- `link.state` — one link: {id}
- `link.valve` — set a valve: {id, open: 0..1}
- `liquid.add` — define a liquid: {name, density, viscosity, surfaceTension, contactAngle?}
- `liquid.info` — liquids, reservoirs and links
- `reservoir.add` — add a reservoir: {id, liquid, container:{kind:"box"|"cylinder"|"sphere"|"profile",...}, position?, volume?|level?, closed?}
- `reservoir.state` — one reservoir: {id}
- `surface.disturb` — add water around a point: {surface, x, z, volume, radius?}
- `surface.height` — height of the water at a point: {surface, x, z}
- `surface.info` — cells, wave speed, volume, energy and cost of the water surfaces
- `wick.add` — a wick in a reservoir: {id, reservoir, poreRadius, solid?, area?, porosity?, length?, angle?}
