v1.20.0 — Simulation layer
Simulate before you build
A new run_simulation MCP tool + an in-viewer motion timeline let you watch mechanisms move, model actuators (e.g. a solenoid's ramp-up / response-delay), and catch collisions-during-motion before you print or machine parts.
Two engines
- Kinematic — scripted motion, analytic, fast. For pattern / interference testing (e.g. a carriage sweeping a needle bed).
- Dynamics (Rapier) — gravity + contacts; dynamic bodies fall/rest/tumble while kinematic bodies still follow their actuator profiles.
How
Add export const sim = { bodies, joints, actuators, ... } to a .shape.ts. mode: "dynamic" (or any dynamic body) selects the physics engine. Examples in examples/sim-demo/; design notes in docs/simulation-design.md.
Additive and guarded — shapes without a sim block are unchanged.
🤖 Generated with Claude Code