# Debug commands of @ferret/physics-mechanisms

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

- `machine.info` — what is in the drivetrain
- `machine.set` — set a command on a coupling or control: {element, command}; a number 0..1 for a clutch, brake or belt (also throttle), an object for a gearbox ({gear: 1..5 | "R" | 0, effort?})
- `machine.state` — speeds, torques, energy
- `machine.step` — advance the drivetrain: {dt, substeps?}
